If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Solarais Commands to Delete particular lines from a file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-14-07, 02:49
smilee4smile smilee4smile is offline
Registered User
 
Join Date: Nov 2007
Posts: 2
Post Solarais Commands to Delete particular lines from a file

Hi,
How to delete lines which are having **'s in a shadow file. In solaris OS.




Thanks & Regards,
Sunil :-)
Reply With Quote
  #2 (permalink)  
Old 11-15-07, 02:00
pdreyer pdreyer is offline
Registered User
 
Join Date: May 2005
Location: South Africa
Posts: 1,268
Why?
pwconv - updates /etc/shadow with information from /etc/passwd
Reply With Quote
  #3 (permalink)  
Old 11-16-07, 02:04
smilee4smile smilee4smile is offline
Registered User
 
Join Date: Nov 2007
Posts: 2
Thank you for the Reply PDreyer.
Actually my requirement is like this. I Need to delete login accounts which are not used for longtime, i.e accounts which are having **.
How to list the login accounts with the expirey date comment wise, so that i can delete the expired accounts.

Thanks
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On