The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 -->
  #4 (permalink)  
Old 10-08-2008
c00kie88 c00kie88 is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 63
it looks as:

sed "s/\($name:.:[0-9]*:\)[0-9]*:\(.*\):\(/.*/.*\):\(/.*/.*\)/\1$answer\2/" /etc/passwd

I tried the single quote as era suggested, but SED is not happy