On Wed, 7 May 2003, Sweth Chandramouli wrote: > For those who aren't on such a system, or who bounce > between OSes too frequently to be bothered worrying whether today's > OS has issues with spaces or not, here's a quickie that will ID errant > spaces in a syslog.conf file: > > $ perl -ne ' > ($s) = /^([^#]\S+\s+)/ and > $s =~ s/ /<SPACE>/g and > do { $s =~ s/\t/<TAB>/g ; print "$.: $s\n"; }; > ' /etc/syslog.conf > > (which returns things like: > > 25: mark.debug;auth.err<SPACE><SPACE><SPACE> > 31: user.debug<SPACE> > 33: daemon.debug<TAB><SPACE> > oooh, sweth, you've written a syslog-lint! how very cool! can we put this on line somewhere? would it be useful to have it detect other kinds of error conditions? _______________________________________________ LogAnalysis mailing list LogAnalysisat_private http://lists.shmoo.com/mailman/listinfo/loganalysis
This archive was generated by hypermail 2b30 : Wed May 07 2003 - 10:54:12 PDT