Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
grep last word in line
Emanuele Fumagalli
Programming language:
Shell/Bash
2021-06-14 09:23:23
0
Q:
grep last word in line
Kalle Alanen
Code:
Shell/Bash
2021-02-25 15:12:08
awk 'NF>1{print $NF}'
0
Tags
line
word
last
Related
grep all except last
grep first match
grep 10 line before
grep until third match
grep until last match
grep word after match
grep count lines
grep all lines after first match
grep line after match
grep second match
New to Communities?
Join the community