put your cmd-line arguments within quotes

make sure they do not contain quotes themselves

Bryan R Harris wrote:
> Slightly OT, but does anyone know how to pass an empty string to a script
> via the command line?  I have a script that is invoked via:
> 
>    rename match-str replace-str <list of files>
> 
> .... where the rename script does an s/match-str/replace-str/g on the
> filenames (variables evaluated, of course; the script already works).
> 
> Sometimes I'd like to simply delete the match string, but I'm having
> trouble passing an empty string as the replace string.  Unix seems to just
> ignore pairs of single or double quotes.  Any suggestions?
> 
> TIA.
> 
> - B
> 
> 
> 



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

Reply via email to