[ale] sed

Jamey Owens vindir at comcast.net
Thu May 17 23:24:06 EDT 2007


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




More information about the Ale mailing list