[oclug] sed (regexp) help needed

Stephen Gregory oclug at kernelpanic.ca
Thu Jul 24 11:08:52 EDT 2003


On Thu, Jul 24, 2003 at 09:58:57AM -0400, daniel wrote:
> 
>   sed -e s/^192\.168\.1\.2.*// mysite.com.log
> 
> but it doesn't work.

To do this under sed you want the 'd' command

sed /^192\.168\.1\.2/d < mysite.com.log





More information about the OCLUG mailing list