1 2# 3# Nasty little awk script to insert a CVS id comment line 4# before the second executable statement 5# 6 7# $Id$ 8 9BEGIN { 10 FIRST = 0; 11 DONE = 0; 12} 13 14DONE == 1 {print; next;} 15 16/^[ \t][ \t][ \t][ \t][ \t][ \t]/ { 17 if (FIRST) { 18 printf("C$Id$\n"); 19 DONE = 1; 20 } else { 21 FIRST = 1; 22 } 23 print; 24 next; 25 } 26 27 {print;} 28