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"
$ <in>mogrify -comment "JFIFComment" -profile 8BIMTEXT:iptc.txt IMAGE.JPG</in> $ <in>exiftool -comment="JFIFComment" -usercomment="EXIF user comment" -artist="artist" -imagedescription="description" -documentname="name" IMAGE.JPG</in>
$ <in>identify -format "%c %[IPTC:2:110] %[EXIF:artist]" IMAGE.JPG</in>
It is easily done with Exiv2:
$ <in>for FILE in *.JPG; exiv 2 mv ${FILE}; done</in>