The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 04-27-2007
munch munch is offline
Registered User
 

Join Date: Mar 2006
Posts: 5
Replace password field using ed/sed

I need to edit the password file to change the password field to *LK* for a specified account (abctest) like:
abctest:*LK*:135:20::/home/abctest:/sbin/sh

Can anyone help me do this using ed or sed?

Thanks a lot!
Reply With Quote
Forum Sponsor