Tips about image manipulation with Unix command-line tools.
In short, ImageMagick can read EXIF and IPTC tags, but only write the latter. EXIF tags can be added using ExifTool.
iptc.txt
2#05#Object Name="Foo" 2#55#Date Created="Bar" 2#80#By-line="Baz" 2#110#Credit="Quux" 2#115#Source="Foo" 2#116#Copyright Notice="FooBar" 2#118#Contact="FooBaz" 2#120#Caption="FooQuux"
$ mogrify -comment "JFIFComment" -profile 8BIMTEXT:iptc.txt IMAGE.JPG $ exiftool -comment="JFIFComment" -usercomment="EXIF user comment" -artist="artist" -imagedescription="description" -documentname="name" IMAGE.JPG
$ identify -format "%c %[IPTC:2:110] %[EXIF:artist]" IMAGE.JPG
It is easily done with Exiv2:
$ for FILE in *.JPG; exiv 2 mv ${FILE}; done