Re: Need some shell scripting help
Previously Dale Scheetz wrote:
> Even if the answer isn't, the question is simple: "How do I make this
> work?"
As a one-liner:
ls | ( while read item ; do echo $item ; done )
Or using a shell function:
dosomething() {
while read item ; do
echo $item
done
}
ls | dosomething
Wichert.
--
_________________________________________________________________
/wichert@wiggy.net This space intentionally left occupied \
| wichert@deephackmode.org http://www.liacs.nl/~wichert/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0 2805 3CB8 9250 2FA3 BC2D |
Reply to: