Hi,
In a script I take the variable NF and print it:
result:
Tue Jul 23 14:26:37 DFT 2002
Now I want to put the last field of $NF (2002) in a variable:
But I don't see how? Has anyone an idea?
B.regards
nm
In a script I take the variable NF and print it:
Code:
BEGIN {FS=": "}
...
$1 ~ /first mount/ {print $NF}
...
Tue Jul 23 14:26:37 DFT 2002
Now I want to put the last field of $NF (2002) in a variable:
Code:
$1 ~ /first mount/ {First="$NF|print $NF";print First}
B.regards
nm