Before planning to write some odd Python scripts to remove duplicate lines from the log file you are analyzing, consider using uniq(1) :
cat my.log | uniq
Beats writing your own script, that’s for sure!
Tuesday, October 9, 2007
Before planning to write some odd Python scripts to remove duplicate lines from the log file you are analyzing, consider using uniq(1) :
cat my.log | uniq
Beats writing your own script, that’s for sure!
Tuesday, November 27, 2007 at 01:51
Just typing “uniq cat.log” would do the stuff :)