[wplug] bash question

Duncan Hutty dhutty at ece.cmu.edu
Fri Nov 30 18:15:26 EST 2007


Zach wrote:
> Hi,
>
> I have a dir with about 3GB worth of text files (over 900 files) and
> want to run the command "foo" on each one, it does some advanced
> grepping basically. Anyone know how to do this? I was trying "for i
> in..." but can't seem to get the syntax right.
>
>   
for i in `ls -a`; do foo $i; done

--
Duncan Hutty


More information about the wplug mailing list