Computing.Net > Forums > Unix > Sed unix

Sed unix

Reply to Message Icon

Original Message
Name: ephaguilon
Date: May 13, 2005 at 06:45:59 Pacific
Subject: Sed unix
OS: Unix
CPU/Ram: 512
Comment:

Can any one help i have a sed command
sed 's/D001*12345 ;/D001 ;/g' but it's not replacing it maybe due to the "*" special char can any one help??


regards,
Raim


Report Offensive Message For Removal

Response Number 1
Name: Luke Chi
Date: May 13, 2005 at 15:44:54 Pacific
Subject: Sed unix
Reply: (edit)

* is a special character. Use an escape character before *.

sed 's/D001\*12345 ;/D001 ;/g'

Luke Chi


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Sed unix

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software