Quote:
Originally Posted by schneidz
heres mine [untested]:
Code:
i=1;for d in `grep -n ^$ style.log | sed s/:/""/`; do sed -n "$i","$d"p style.log | sort | uniq -c; i=$d; done
|
Hi schneidz, if you can please avoid making such chains: for grep sed sed sort uniq .... (tee, awk, cat, cut .... )
They will never be efficient, they will fork a lot of processes and usually the same thing can be implemented in one sed/awk/perl/shell script.