[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 :)
>
- References:
- [ale] sed
- From: terry at bitlinx.com (Terry Bailey)
- [ale] sed
- From: cfowler at outpostsentinel.com (cfowler)
- [ale] sed
- From: vindir at comcast.net (Jamey Owens)
- [ale] sed
- From: yahoo at jimpop.com (Jim Popovitch)
- [ale] sed
- From: jkinney at localnetsolutions.com (James P. Kinney III)
- [ale] sed
- From: yahoo at jimpop.com (Jim Popovitch)
- [ale] sed
- From: yahoo at jimpop.com (Jim Popovitch)
- [ale] sed
- From: jkinney at localnetsolutions.com (James P. Kinney III)