[lug] bash scripting question

Tony Dyson anorak at comcast.net
Sat Nov 19 12:18:29 MST 2005


Try --

for i in `ls`; do
command "$i" | othercommand
done


Hugh Brown wrote:
> I've had this problem a few times and haven't found a quick way to get
> around it.  I often do per file operations at the bash prompt with
> something like this:
> 
> for i in `ls`; do
> command $i| othercommand
> done



More information about the LUG mailing list