Is there a way to print out the 3rd word of a line found in a file?
Can i do this with grep??
Is there a way to print out the 3rd word of a line found in a file?
Can i do this with grep??
awk is probably a better choice:
Code:awk '/PATTERN/{print $3}' file
Bookmarks