[ale] sed

Marvin, International Martian of Mystery marvin.higginbottom at gmail.com
Fri May 18 19:10:24 EDT 2007


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.  :-)



More information about the Ale mailing list