Probably a simple sed questions for deleting lines...
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
that is what the bad lines look like. They screw up awstats when it trie to update. Anyway, i was hoping someone could give me some direction on using sed for this. probably jsut the portion "x80@" could be matched.
this is what i was trying:
sed -n "/x80@/d" /www/logs/access_log
it is not removing the lines for some reason.
Also, from what i understand, these lines are reltaed to some sort of SSL request or something. I'm really not sure why they are there or how to stop apache from logging these bad requests. Any ideas on that would be greatly appreciated.
ok great. thanks for the help. I thought -n just made it silent. the problem is, if i let it print al the liens to the screen, it takes FOREVER to run, as the log file gets pretty large pretty fast.
Yes, -n makes it silent. (That means it doesn't print to the screen or anywhere else--unless you specify a line to print) In your example, you suppressed printing and did not write back to the file. Thus it did nothing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.