In the
awk
below I expected that adding NR==2
would only print check the 2nd line $1
value, the 1
and ensure that it is a number. If it is then print Index is a number
else Index is not a number
. It seems close but the results is not expected... maybe I used the wrong variable? Thank you :).
0 comments:
Post a Comment