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