View Single Post
  #2  
Old 12-19-2005, 04:16 PM
jba jba is offline
Senior Member
 
Join Date: Feb 2005
Posts: 672
Default Re: I want to save 1 image to X image files with different names.

try this

awk '{split($0,names,","); for (i in names){printf "cp image.bmp %s;\n", names[ i ]}}' < names.txt

edit: the ubb code is screwing it up -- the "names[ i ]" part you need to take out the spaces
Reply With Quote