How To Locate Or Find Specific Line Word In File In Linux Shell Command With GREP
- Forums
- Linux Systems
- How To Locate Or Find Specific Line Word In File In Linux Shell Command With GREP
This Page Contains information about How To Locate Or Find Specific Line Word In File In Linux Shell Command With GREP By linux in category Linux Systems with 0 Replies. [2895], Last Updated: Sat May 18, 2024
linux
Thu May 03, 2007
0 Comments
888 Visits
it is often useful to locate the lines in a file that contain a word or string of characters.
lets say i have a file called myusers and i want to look for a user called lorain45. to find this user in this file, i would run this command on the linux shell to do that:
grep lorain45 myusers
the above command will display all the lines that are found with lorain45 in the myusers file
pretty easy huh!
hope this helped.