[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] sed
On Thu, 2007-05-17 at 21:44 -0400, Jamey Owens wrote:
> One note of caution. It can be pretty dangerous to try and use the same
> file for input and output. Lots of shells will leave you with a totally
> empty file using the previous sed command with input & output being equal.
most recent versions of sed support the -i param which allows for
inplace (same file) editing/changes. man sed. ;-)
-Jim P.
- Follow-Ups:
- [ale] sed
- From: vindir at comcast.net (Jamey Owens)
- [ale] sed
- From: jkinney at localnetsolutions.com (James P. Kinney III)
- 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)