Jason Wozniak wrote:
> I was attempting to produce the file list by piping the output of a
> find command.  See my previous email for the problem I'm having with
> that...
>
> I guess the question I would have is how you are producing the list in
> "myfiles"?
>
> in my case I suppose I could go to the directory that has the
> glog.log files and say I wanted to replace bob with charlie I could
> do this on the command line without needing to cat a file with a list
> of the files I wanted to modify:
>
> #perl -p -i.bak -w -e 's/bob/charlie/g' glog.log*
>
> This is straight from the book "Learning Perl" pg. 231
>
> If nobody can tell me why, when I redirect the standard output stream
> of the find command into my program, I lose the first argument, then
> I guess I'll have to do the same thing you did with cat...
>
> It sounds like we are both trying to produce something a little more
> robust that could be used in a variety of situations without having
> to create a new input file every time.

See my response to your other post Jason. And Richard, if you're
trying to do something like this, i.e. processing a list of files which
can be defined by a wildcarded filename, then take a look there as
well.

Cheers,

Rob




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to