Ok then what would I type to get rid of all the cmd.exe rubbish in my access_log file.
What I typed was: grep -v cmd.exe access_log then sed /cmd.exe/ d' access_log then awk '/cmd.exe/ {next} {print} access_log My version of what I wanted it to do. On Monday 14 October 2002 07:11 pm, Samuel Flory wrote: > Craig Iffelberg wrote: > >Hey why wont it work for me? > > > >I typed in exactly what was in the e mail and > >it said > > > > > >sed: -e expression #1, char 8: Missing command > > You can't of typed in exactly the what was in the email. The > expression was 15 char long!!! What the above says is "the the 1st > regular expression ended after 7 characters without telling me what to > do". > > >On Monday 14 October 2002 05:56 pm, Joseph V Moss wrote: > >>>I have a file like this > >>> > >>>aaaaaaaaaaaaa > >>>bbbbbbbbbbbbb > >>>aaaaaaaaaaaaa > >>>bbbbbbbbbbbbb > >>> > >>>How I can filter this file, so that all the lines containing > >>>bbbbbbbbbbbbb, were deleted. Is there any way to do it ? > >>>Thanks in advance. > >> > >>There are *lots* of ways to do it. Here are just three examples: > >> > >> grep -v bbbbbbbbbbbbb filename > >> > >> sed '/bbbbbbbbbbbbb/d' filename > >> > >> awk '/bbbbbbbbbbbbb/ {next} {print}' filename -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list