Computing.Net > Forums > Unix > sed with delimiter, bourne

sed with delimiter, bourne

Reply to Message Icon

Original Message
Name: uribo
Date: April 17, 2003 at 05:17:57 Pacific
Subject: sed with delimiter, bourne
OS: Solaris
CPU/Ram: n.a.
Comment:

this line is part of /etc/shadow file
shelly:$1$/gtrygDi$rtklncAD.lv3w4Nr6nG17.:12147:0:99999:7::12783:

i need to sed the "encrypted password" (i.e. the second field) and replace it with a "*".

becos of the delimiter, i have problem.

& how do i get the sed command to get $2(second field). thanks!


Report Offensive Message For Removal


Response Number 1
Name: David Perry
Date: April 21, 2003 at 12:24:19 Pacific
Subject: sed with delimiter, bourne
Reply: (edit)

This thread may be a help to you.

http://www.computing.net/unix/wwwboard/forum/4833.html


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 with delimiter, bourne

Comments:

 


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