Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docs:bash:bash_loop [2008/08/03 00:25] – external edit 127.0.0.1 | docs: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 " | tiff2pdf -p letter -o " | ||
+ | done | ||
+ | </ | ||
+ | * use a file containing a list of filenames for a copy operation:< | ||
+ | cat fileswithnotesbug.txt | while read file;do | ||
+ | cp " | ||
done | done | ||
</ | </ | ||
Line 24: | Line 29: | ||
done | done | ||
</ | </ | ||
+ | |||
+ | Another example showing how to set up new folders with git repo' | ||
+ | < | ||
+ | $ mkdir ~/git | ||
+ | $ cd ~/git | ||
+ | $ for i in a b c d | ||
+ | do | ||
+ | mkdir $i | ||
+ | cd $i | ||
+ | git init | ||
+ | echo " | ||
+ | git add $i.txt | ||
+ | git commit -m " | ||
+ | cd .. | ||
+ | done | ||
+ | </ | ||
+ | |||
+ | original url: http:// | ||
===== other notes ===== | ===== other notes ===== |