Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: substitution of illegal chars in filename

by lahf (Initiate)
on Oct 04, 2003 at 14:04 UTC ( #296507=note: print w/replies, xml ) Need Help??

in reply to substitution of illegal chars in filename

In the filename:

index.cgi%3Fsect = has the alt code in
index.cgi?sect = has the reserved character

Linux can read them fine as part of a filename, but say I wanted to put them onto a different system, I would have problems.
I was trying to alias the perl command like so:
alias subs="perl -pi~ -e 's/@1/@2/g' @3"
but it did something crazy, well nothing at all, except pipe out command and errors:
$ subs /www/ads/ "" legal-USAGetaway.htm
Can't open @3: No such file or directory.
Can't do inplace edit: /www/ads/ is not a regular file.
Can't open : No such file or directory.
Does that mean I'm not escaping the /'s in the command I'm aliasing, and I didn't get why it says can't open @3, does it not recognise "" as @2?
am i crazzy, or just expecting too much, or whhich part of the manual does it say that in?
  • Comment on Re: substitution of illegal chars in filename

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://296507]
[Eily]: well, I didn't get the joke and I didn't get the image either because the proxy won't let me
[erix]: Leasure Suit L.
[LanX]: THEY are restricting your Internet?
[LanX]: join the fight brother
[Eily]: probably because I'm an underpriviledged millenial

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2017-03-23 17:48 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (292 votes). Check out past polls.