Bryan R Harris wrote at Tue, 11 Jun 2002 00:36:39 +0200:

> 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?
> 
 
 perl -e 'print join "\n", @ARGV' 1 "" 2 3

prints at my computer:
1

2
3

Cheerio,
Janek

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

Reply via email to