nixCraft Linux/Unix Forum
Awk scripting use of fi (awk ‘{print $NF}fi’)
Linux
awk
,
unix
rymndcprl
November 27, 2019, 1:46am
1
awk '{print $NF}fi'
what is that
fi
for?
what’s the difference if I will not include it, like I only want to do —> awk ‘{print $NF}’
thanks,
raymond
nixcraft
November 27, 2019, 9:16am
2
Seems like a typo to me. Is there more to that line?