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

[ale] sed



Not quite a pure redirection but you can get an inline redirection to the 
same file using backticks and echo too.

Kinda cool.

echo "`sed -e 's/abc/xyz/g' myfile.txt`" > myfile.txt


-JO

----- Original Message ----- 
From: "James P. Kinney III" <jkinney at localnetsolutions.com>
To: ale at ale.org

>I have clearly demonstrated the spurious effects of using redirects on
>an in-place edit with sed.
>
>Nice to know I have things I can do :)
>