bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: use null character as for loop delimiter


From: Paul Jarc
Subject: Re: use null character as for loop delimiter
Date: Tue, 04 Jan 2005 00:06:33 -0500
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

Hunter Peress <hunterp@gmail.com> wrote:
> 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.

A different wildcard pattern might work: "for file in *.txt", etc.  Or
you can match the filename against multiple patterns in a case
statement inside the loop to skip some files.

I'm not saying the proposed feature wouldn't be useful, but you can do
the job safely using only what bash (or even sh) already provides.


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]