Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 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