Thanks

Gary Thornock wrote:

>--- Eduardo Sanz Garcia <[EMAIL PROTECTED]> wrote:
>  
>
>>Is there a way to edit-in-place with sed on Mac OS X?
>>    
>>
>
>sed -i works just fine on OS X.  You do want the -i option to
>appear before any s/a/b/g instruction, though, and it does
>require an extension (e.g. .bak) immediately after the -i (but
>you can use '' as the extension -- I just tried
>  sed -i '' 's/4/5/g' tmpfile
>and it worked as I expected).
>
>--------------------
>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