An AWK script consists of many statements of the form:
Code:
...
PATTERN ACTION
...
A pattern can be a regular expression, but it needs not to be. In your case you would use a regular expression for PATTERN:
Code:
/b2 c2/ { print "NEWLINE"; }
{ print $0; }
This awk script should to the task you described: It reads each line and checks if one pattern matches. If the line contains "b2 c2", then the command between the braces will be executed. After that more patterns are checked and the action executed, if needed. The second line has no pattern. This means that any line matches it. $0 stands for the whole line. print will output its arguments to STDOUT.
To run this script, execute
Code:
awk -f script.awk input-file
You may have a look here:
http://www.vectorsite.net/tsawk.html
But for just inserting a line, sed will be better suited.