The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-05-2009
ravi_rn ravi_rn is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 19
Regular Expression

Hi,

I have the following file as shown below:

Replace()
{
sed -e "s+ABCDIR+$DDIR/C+g" \
-e "s+ABCDIR+$DDIR/C+g" \
-e "s + ABCDDIR+$DDIR/C"\
}

I need a Regular expression to grep 0nly ABCDIR.
if i use grep -i "ABCDIR" it will display everything.
just i need the out put as only ABCDDIR.

Please help me in solving.


Thank you very much
Ravi