docs:bash:bash_loop

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
docs:bash:bash_loop [2010/03/07 13:47] billhdocs:bash:bash_loop [2010/05/07 11:19] (current) billh
Line 12: Line 12:
 ls -1L *.tiff | while read file;do ls -1L *.tiff | while read file;do
 tiff2pdf -p letter -o "${file}".pdf "${file}" tiff2pdf -p letter -o "${file}".pdf "${file}"
 +done
 +</code>
 +  * use a file containing a list of filenames for a copy operation:<code>
 +cat fileswithnotesbug.txt | while read file;do
 +cp "${file}" /cygdrive/n/Receive/CIA/nsf/ClmTest/;
 done done
 </code> </code>
  • docs/bash/bash_loop.1267994856.txt.gz
  • Last modified: 2010/03/07 13:47
  • by billh