On 8/28/08, PRASHANT KOKATE <[EMAIL PROTECTED]> 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

Reply via email to