hi prashant,
 
# grep ^r <filename>
 
will return lines having word starting with small r.
 
# grep ^'[R|r]' <filename>
 
will return the lines having word starting with capital R or small r.

 
-----------
Muzaffar Ansari
+91 9224339939 
[EMAIL PROTECTED]



----- Original Message ----
From: PRASHANT KOKATE <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]; [email protected]
Sent: Thursday, August 28, 2008 2:07:23 PM
Subject: [LinuxVadaPav] HELP ON GREP COMMAND


Dear All,
We used GREP command to find the the specific word from the file,If i want to 
find a word starting from letter "A" then how can i use this command

E.G: vi/usr/share/ dict/words grep r <----------- --------- --------- --------I 
WANT TO FIND THE           WORDS STARTING FROM R

CAN ANYBODY HELP ME

Regards
PRASHANT KOKATE

[Non-text portions of this message have been removed]

 


      

[Non-text portions of this message have been removed]

Reply via email to