Difference between revisions of "$NF"

From wikieduonline
Jump to navigation Jump to search
(Removed redirect to Awk)
Tag: Removed redirect
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  [[awk]] '{print $NF}' your_file
+
  <code>[[awk]] '{[[print]] $NF}' your_file</code>
 +
<code>[[awk]] '{print $(NF-1)}' your_file</code>
 +
 
 +
== Related ==
 +
* [[FS]], [[OFS]], [[RS]], [[ORS]], [[NR]], [[NF]], [[FILENAME]], [[FNR]]
 +
* <code>[[alias]]</code>
 +
* [[^]]
 +
* [[Track HTTP Application Response time in Nginx]]
  
 
== See also ==
 
== See also ==

Latest revision as of 18:11, 10 July 2023

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

Related[edit]

See also[edit]

Advertising: