Re: how to make a script of this one-liner...
- From: Bill Marcum <marcumbill@xxxxxxxxxxxxx>
- Date: Fri, 25 Apr 2008 12:14:32 -0400
On 2008-04-25, Arnaud Dagnelies <arnaud.dagnelies@xxxxxxxxx> wrote:
Hello,
I would like to write a small script used as follows:
igrep ***
That basically simply performs the grep and formats the output in a
special way using another script. In short, what should be executed
is:
grep *** | someScript
...where the *** is anything that can be given to grep. Thus not only
the pattern and files but also including flags and params and so on.
What would be the easiest way to do that?
If someScript doesn't change, you might consider using awk or perl.
.
- Follow-Ups:
- Re: how to make a script of this one-liner...
- From: Arnaud Dagnelies
- Re: how to make a script of this one-liner...
- References:
- how to make a script of this one-liner...
- From: Arnaud Dagnelies
- how to make a script of this one-liner...
- Prev by Date: Re: how to make a script of this one-liner...
- Next by Date: Re: Howto read file line-by-line in bash
- Previous by thread: Re: how to make a script of this one-liner...
- Next by thread: Re: how to make a script of this one-liner...
- Index(es):
Relevant Pages
|