Multiple Parameters

mafioso1823_at_contourmediagroup.com
Date: 07/24/04


To: <beginners@perl.org>
Date: Sat, 24 Jul 2004 12:38:04 -0400

I am trying to write a search and replace script that can accept multiple
arguments, but i want the first argument to be the filename to read, the
next one to be the string to search for, the next one to be the replacement
string, and the last one to be the name of the new file it creates with the
new changes, but i can't figure out how to seperate each argument, can some
one tell me how to do something like this. Any help is very much
appreciated.



Relevant Pages

  • Re: Formula to convert yyyy.mm.dd to yyyy.mm.dd.ddd? (Perhaps a tricky one?)
    ... >>script set in old days to putting date at the required yyyy.mm.dd. ... >>But we've been needing the days in the filename, ... >Both results will be text string as Excel formatting cannot return the two day ... For the standard format one, ...
    (microsoft.public.excel)
  • Re: find files which contains certain string
    ... Richard and All, ... a certain string in the filename. ... Now I need to search the directory for the filename which contains the ... Or if you want to have a script do something with the file once found, ...
    (microsoft.public.windows.server.scripting)
  • Re: find files which contains certain string
    ... a certain string in the filename. ... I would hope that their names would differ - if not then they'd all be the ... Now I need to search the directory for the filename which contains the ... Or if you want to have a script do something with the file once found, ...
    (microsoft.public.windows.server.scripting)
  • Re: using "find" with multiple -name patterns???
    ... > I need to use find with multiple make patterns. ... all files whose names end in .mk and then contain the string 'ake' somewhere ... in the filename are printed out.But what we need is the OR on the filenames. ...
    (comp.unix.shell)
  • Re: remove words from mutiple files
    ... a filename, you need to make a small shell script that reads the whole ... directory and uses mv and sed together to rename the files that has ... the offending string it's name. ... More efficient in the script or just more efficient overall? ...
    (alt.linux)