[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] sed



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