thelinuxterminal.com grep command 1

thelinuxterminal.com grep command

 cat file.txt |awk   '{print $NF}'

Here is what the above code is Doing:
1. cat file.txt: prints the contents of the file.
2. awk ‘{print $NF}’: prints the last field of each line.

Similar Posts