*** empty log message ***
This commit is contained in:
parent
2ffd70f900
commit
748d7408b1
6
ase/test/awk/negnum.data
Normal file
6
ase/test/awk/negnum.data
Normal file
@ -0,0 +1,6 @@
|
||||
Beth -4.00 0
|
||||
Dan 3.74 0
|
||||
-Kathy 4.00 10
|
||||
Mark 5.00 -20
|
||||
Mary -5.50 22
|
||||
Susie -4.25 -18
|
6
ase/test/awk/unr-001.awk
Normal file
6
ase/test/awk/unr-001.awk
Normal file
@ -0,0 +1,6 @@
|
||||
# use negnum.data
|
||||
BEGIN { OFS="\t"; }
|
||||
{
|
||||
for (i = 1; i <= NF; i = i + 1) if ($i < 0) $i = -$i;
|
||||
print;
|
||||
}
|
Loading…
Reference in New Issue
Block a user