Horje
awk match last occurrence Code Example
awk match last occurrence
You can use $NF with the command awk to get the last argument as follows:
awk -F 'delimiter' '{print $NF}'
And for getting penultimate or previous arguments type $(NF-n):
awk -F 'delimiter' '{print $(NF-1)}' #penultimate argument




Shell

Related
uninstall editable pip Code Example uninstall editable pip Code Example
extract path from url sed Code Example extract path from url sed Code Example
powershell function resize image Code Example powershell function resize image Code Example
stop mark from showing nano Code Example stop mark from showing nano Code Example
bash script template linux Code Example bash script template linux Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10