Tag Archives: count occurences before line

nawk/grep script for counting occurences on line before

I was helping out a co-worker of mine construct a script to find/count occurrences of a given string that occur on a line preceding another given string. Using GNU grep, this would be easy: Unfortunately, Solaris does not use GNU … Continue reading

Posted in Scripting, Solaris | Tagged , , , , , | 2 Comments