When that awk one-liner gets to be three unreadable lines

You use a tool all the time and still never know the obvious. If you
have ever written one of those AWK scripts on a single line that grows
and grows. You know the type it becomes a script that is now three lines
long but you resist doing anything with it even though the scrolling
back and forth is getting ridiculous. Well if you are using GNU Awk the
just tag the "--profile" at the start and you get a fully formatted
version of you script dumped to "awkprof.out" which you can then
actually read and spot that simple mistake or edit and use as a script
file.

 Bonus fact: Run "pgawk --profile" and it puts some simple profiling
information into the output as well for you optimising pleasure.

520 views and 0 responses