-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 14 October 2002 08:14 pm, Craig Iffelberg wrote: > 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
Unless you redirect the output, this will just print every line that does not contain "cmd.exe" to the console. > sed /cmd.exe/ d' access_log Missing quote. Try: sed '/cmd.exe/d' access_log > awk '/cmd.exe/ {next} {print} access_log Missing quote. awk '/cmd.exe/ {next} {print}' access_log - -- - -Michael pgp key: http://www.tuxfan.homeip.net:8080/gpgkey.txt Red Hat Linux 7.{2,3} in 8M of RAM: http://www.rule-project.org/ - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9q36An/07WoAb/SsRAkXeAKCYOXCrwvfwsy5CZUs8Yiu/HiE/UACff0Pb R0LXgs23TirYkrrnxSJ+G+U= =Tzrw -----END PGP SIGNATURE----- -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list