I have an external program that produces an output file (largish, 20K lines possible).
I need to insert a new line between the existing line 1 and line 2. I've been looking at awk and sed - I use one liners in each fairly regularly - but I haven't been able to come up with the right switches to do this.
awk 'NR==2 {print "new line"} 1'
– glenn jackman Jan 23 '12 at 17:31