Nice example. However, theres plenty of cases that I use grep to only
operate on certain files, in which case the for each in * magic doesnt
work. Sure paul, you could just argue that i should use find and its
print0, but then im limited to xargs -0 -i '{}' which is not as
effective as a for loop.
On Mon, 03 Jan 2005 22:51:24 -0500, Paul Jarc <prj@po.cwru.edu> wrote:
> Hunter Peress <hunterp@gmail.com> wrote:
> > for each in `ls | tr '\n' '\0'` ; do something ;done would work.
>
>http://laku19.adsl.netsonic.fi/era/unix/award.html#ls
>
>
> paul
>