Is there a way to edit-in-place with sed on Mac OS X?

Byron Clark wrote:

>On 4/30/07, Eduardo Sanz Garcia <[EMAIL PROTECTED]> wrote:
>  
>
>>This statment works well on linux:
>>sed s/e/a/ -i hello.txt
>>hello.txt is edited in place.
>>
>>Why is sed not doing the same on macs?
>>[lynx:~] esanzgar% sed s/e/a/ -i hello.txt
>>*sed: -i: No such file or directory*
>>    
>>
>
>Because 'sed -i' is a gnu extension and the Mac OS X sed is BSD based.
>--------------------
>BYU Unix Users Group 
>http://uug.byu.edu/ 
>
>The opinions expressed in this message are the responsibility of their
>author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
>___________________________________________________________________
>List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
>
>  
>
--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to