in reply to text sorting question, kinda

Just put the blah blahs in output file 1, and non blah blahs in output file 2. Then when you are done:
`cat out1.txt out2.txt > final-output.txt;rm out[12].txt`
You could use arrays if you don't mind the memory usage and feel dirty using temporary files :) . Don't know how clean this is supposed to be :)

Ciao,
Gryn