[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] sed
- Subject: [ale] sed
- From: jkinney at localnetsolutions.com (James P. Kinney III)
- Date: Thu, 17 May 2007 22:48:07 -0400
- In-reply-to: <1179456200.16584.3.camel@localhost>
- References: <20070517234320.JFCX24271.ibm58aec.bellsouth.net@BitlinxGroup.bitlinx.com> <1179446270.5166.10.camel@cfowler-laptop> <04e501c798ee$25a22450$6704a8c0@minty> <1179453069.13317.1.camel@localhost> <[email protected]> <1179455980.16584.0.camel@localhost> <1179456200.16584.3.camel@localhost>
On Thu, 2007-05-17 at 22:43 -0400, Jim Popovitch wrote:
> On Thu, 2007-05-17 at 22:39 -0400, Jim Popovitch wrote:
> > You need to do this:
> >
> > sed -i -e 's/abc/xyz/g' <file >file
>
> Actually, to be perfectly clear (since I just cut+pasted your cmdline)
> you need to do only this:
>
> sed -i -e 's/abx/xyz/g' file (no redirects)
Yes! It was the redirects that broke it.
It makes sense that the operation is supposed to work on a single file
so redirects should produce spurious results.
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 :)
>
> -Jim P.
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>
--
James P. Kinney III
CEO & Director of Engineering
Local Net Solutions,LLC
770-493-8244
http://www.localnetsolutions.com
GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
- Follow-Ups:
- [ale] sed
- From: vindir at comcast.net (Jamey Owens)
- 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)