Hello all,
I am trying to grep each word of a file.
I have a file with 1.txt,
rob
tom
john
I want to grep tom file.txt, grep rob file.txt,
I am struck at... I could do this awk '{print $1}' 1.txt | grep ??(not sure here)
Any help?
Thanks
Hello all,
I am trying to grep each word of a file.
I have a file with 1.txt,
rob
tom
john
I want to grep tom file.txt, grep rob file.txt,
I am struck at... I could do this awk '{print $1}' 1.txt | grep ??(not sure here)
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.