[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] sed
- Subject: [ale] sed
- From: marvin.higginbottom at gmail.com (Marvin, International Martian of Mystery)
- Date: Fri, 18 May 2007 19:10:24 -0400
- In-reply-to: <14886834.204241179493930531.JavaMail.servlet@perfora>
- References: <14886834.204241179493930531.JavaMail.servlet@perfora>
timothy at meanor.net wrote:
> Here's another perl solution:
>
> perl -p -i.bak -e "s/abc/xyz/g" file
>
> where "file" is the file you want to change.
>
What would be the syntax if "file" had spaces in it? Would you escape
the spaces, or would you double-quote the variable?
For sed and perl, preferably. :-)
- Follow-Ups:
- [ale] sed
- From: ozone at webgroup.org (David Tomaschik)
- References:
- [ale] sed
- From: timothy at meanor.net (timothy at meanor.net)