1 # bsnl.awk - eliminate backslash-newline sequences
2 # Public domain. Originally written 2010, Karl Berry.
4 # on a line ending with a backslash, save it (minus the backslash).
6 buf = buf
substr ($
0, 1, length ($
0) - 1);
10 # on other lines, print the buffer if there is one, then the regular line.
13 printf "%s", buf
; # don't print a newline