in reply to Re: Replace strings in multiple files
in thread Replace strings in multiple files
Why not? Well, a few reasons, I suppose.
First off, not all OS's do filename expansion. CMD.EXE doesn't, for example, at least not last time I tried.
Second, maybe the filename is coming as input from an input file. Putting filenames as a command line parameter isn't always a good option. Maybe it's being run automatically through a web interface without any use of a shell.
Third, maybe the filenames are remote files, files in another directory, or any number of other reasons.
The answer to all of the above is glob (assuming you don't need to recurse subdirs).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Replace strings in multiple files
by afoken (Chancellor) on Nov 13, 2012 at 17:10 UTC | |
by Tanktalus (Canon) on Nov 13, 2012 at 20:33 UTC |