jhead to write comments to JPEGsDownload jhead, a small utility for such purposes. It is in the public domain, and has versions for windows, red hat, freebsd, OS X, as well as source code that can be used to compile it on any linux or unix flavor. Either follow the instructions on the page, or follow these simplified instructions:
chmod +x jhead. Move the program to somewhere within your PATH variable (to see what your path is, use echo $PATH) so that you can execute it; alternatively, to execute it, reference it by its absolute or relative location to your current working directory.configure and then make install and then make), then modify the executable as mentioned above. However, you can likely use the prebuilt executable -- I got it to work on Debian with the 2.4.27-2 kernel.jhead.exe file to someplace, e.g. the Desktopcmd which gives you a command window.path at the prompt. Place the executable, or a link to it, in one of these directories, or else modify your path variable.cd to change directories, dir to view the contents (like ls in unix shells), and you can make heavy use of the tab-completion feature. To run the program, just type jhead (see below for more instructions).jhead -hjhead -cl "Comment text here" FILENAME jhead -cs /dev/stdout FILENAME ; echo jhead -cs temp.txt FILENAME
more temp.txt (not very elegant; sorry!) jhead -cs FILE FILENAME