hi agnello,

>> you could use the following sed command to do this ( works similar like grep 
>> )

>> sed -n "/^[r]/p" filename

methinks 'grep ^r filename' is more easy as compared to sed.

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



----- Original Message ----
From: Agnello George <[EMAIL PROTECTED]>
To: [email protected]
Sent: Friday, August 29, 2008 3:01:19 PM
Subject: Re: [LinuxVadaPav] HELP ON GREP COMMAND


On 8/28/08, PRASHANT KOKATE <prashu.linux@ yahoo.com> wrote:
>
>
>
>
>
>
> 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
>

hi
you could use the following sed command to do this ( works similar like grep )

sed -n "/^[r]/p" filename

le me know !!

-- 
Regards
Agnello D'souza
www.linux-vashi. blogspot. com
www.bible-study- india.blogspot. com
 


      

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

Reply via email to