[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] sed
Nice Jim, thanks for the heads up. Looks like I'm too accustomed to stuffy
old boxes.
JO
----- Original Message -----
From: "Jim Popovitch" <yahoo at jimpop.com>
To: ale at ale.org
To: "Atlanta Linux Enthusiasts" <ale at ale.org>
Sent: Thursday, May 17, 2007 9:51 PM
Subject: Re: [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.
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
- 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)