On Sat 19 Apr 2014 08:36:22 AM PDT, ISHIKAWA,chiaki wrote: > egrep "^(\\[[0-9]*\\] |)WARNING" $1 | egrep NS_ENSURE | grep -v "sort > operation has occurred for the SQL statement" | sort | uniq -f1 -c | > sort -n -r
It'd be easier if you threw in a *little* bit of perl: perl -lne 'print $1 if /WARNING: (NS_ENSURE.*)/' | sort | uniq -c | sort -nr But you must be ignoring the SQL statement warning because it has varying text? I don't have an example line in my log, but if it matches https://bugzilla.mozilla.org/show_bug.cgi?id=933456 then you could use something like perl -lne 'next unless s/.*?WARNING: (NS_ENSURE.*)/$1/; s/0x[\da-f]+/0x????/i; print' | sort | uniq -c | sort -nr _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform