linuxjunk
Wednesday, January 23, 2008
do some command on all files matching pattern
I keep forgetting how to do this:
for i in *sequence; do ~/code/myprog $i $i.out; done
runs myprog on all files ending in sequence myprogs second argument is filename followed by .out.
‹
›
Home
View web version