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.
How To Locate Or Find Specific Line Word In File In Linux Shell Command With GREP
How To Locate Or Find Specific Line Word In File In Linux Shell Command With GREP
How To Locate Or Find Specific Line Word In File In Linux Shell Command With GREP
Post Description:
Post Tags: how, to, locate, or, find, specific, line, word, in, file, in, linux, shell, command, with, grep
This Post Has Been Viewed 278 Times Since Thu May 03, 2007 4:01 pm Posted By linux with 0 replies
Next Post »» how to print a file in linux command printing files in the linux shell command prompt
Post Description:
Post Tags: how, to, locate, or, find, specific, line, word, in, file, in, linux, shell, command, with, grep
This Post Has Been Viewed 278 Times Since Thu May 03, 2007 4:01 pm Posted By linux with 0 replies
Next Post »» how to print a file in linux command printing files in the linux shell command prompt
| How To Locate Or Find Specific Line Word In File In Linux Shell Command With GREP |
Leave Your Comments [ dejar commentarios ]
Comments and replies About How To Locate Or Find Specific Line Word In File In Linux Shell Command With GREP
(0) Comments

