Difference between revisions of "$NF"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
<code>[[awk]] '{print $NF}' your_file</code>
+
<code>[[awk]] '{print $NF}' your_file</code>
<code>[[awk]] '{print $(NF-1)}' your_file</code>
+
<code>[[awk]] '{print $(NF-1)}' your_file</code>
  
 
== Related ==
 
== Related ==

Revision as of 05:14, 30 August 2022

awk '{print $NF}' your_file
awk '{print $(NF-1)}' your_file

Related

See also

Advertising: