Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
9
Task/Program-termination/AWK/program-termination-2.awk
Normal file
9
Task/Program-termination/AWK/program-termination-2.awk
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# usage: awk -f exittest.awk input.txt
|
||||
BEGIN { print "# Exit-Test" }
|
||||
|
||||
#/s.*t/ { print "!", NR, $0; next } #1: List all matches
|
||||
/s.*t/ { print "!", NR, $0; problem=1; exit} #2: Abort after first match
|
||||
{ print " ", NR, $0}
|
||||
|
||||
END { if(problem) {print "!! Problem !!"; exit 2} }
|
||||
END { print "# Lines read:", NR }
|
||||
Loading…
Add table
Add a link
Reference in a new issue