[wplug] scripting question
Drew from Zhrodague
drew at zhrodague.net
Wed Jan 28 09:26:11 EST 2004
> Hi all -
> I need to script a file conversion process. Basically, I have a directory
> of files that I need to run a command against, and dump the results to a
> file named the same as the input but with a unique extension.
>
> e.g.:
>
> blahblah foo1 > foo1.bar
> blahblah foo2 > foo2.bar
> lather, rinse, repeat.....
>
> I'm sure I could figger it out using the output of ls and the "for i in"
> type syntax - but know that there's some scripting talent lurking here....
> and I'm a lazy sot (and have a broken cluster to attend to).
find ./ | awk '{print "blahblah " $1 " > " $1 ".bar"}' | sh
--
Drew from Zhrodague http://www.WiFiMaps.com
drew at zhrodague.net Location Based WiFi
More information about the wplug
mailing list