summaryrefslogblamecommitdiff
path: root/src/build/addcolon.awk
blob: be25fde6f12a54f05e974deca240ca2e9c68ff1e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                         
#!/bin/awk -f
#
# buraq: this awk script was used to add a colon to .neg files in test suite.
#        though it might be useful to have it somewhere for non-awk users as a reference.
#
{ i = match ($0, /scala:[0-9]+/); 
   if(i == 0) {
	 print $0
   } else {
	   sub(/scala:[0-9]+/, "&:")
		   print $0
   }
}