5

matching image files to create one image

view full story
linux-howto

http://www.unix.com – Hi, I have two sets of image files. Both sets have names A to Z but set 1 ends with .cdt.png and set 2 ends with .matrix.png. I want set 1 to match with set 2 if the names match (i.e. A.cdt.png will match with A.matrix.png) and with the convert image tool (program for images), it will merge the two images into one image file (i.e. one file with the two A images). The code that I have been working with is indicated below but the problem is that I cannot get it to work. Maybe there is an alternative way of doing this. Code: for f in *.cdt; do var=`echo "$f" | sed 's/\.cdt$/ (HowTos)