Jules_Verne has asked for the wisdom of the Perl Monks concerning the following question:
The above code does what I want, but let's say that I also want to do an inline-edit of all of the files in my current directory. What could I add to the above code to accomplish this, as well? I really would like to do this with wildcards. Thanks!perl -pi -e 's/mike/meathead/ig' */*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: simple command-line question
by gellyfish (Monsignor) on Mar 04, 2002 at 22:11 UTC | |
|
Re: simple command-line question
by I0 (Priest) on Mar 04, 2002 at 22:10 UTC | |
|
Re: simple command-line question
by hsmyers (Canon) on Mar 05, 2002 at 13:52 UTC | |
|
Re: simple command-line question
by rbc (Curate) on Mar 04, 2002 at 23:02 UTC | |
by IlyaM (Parson) on Mar 05, 2002 at 09:17 UTC | |
by Sidhekin (Priest) on Mar 05, 2002 at 13:21 UTC |