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




Thread: Parsing a file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 10-13-2008
mirusko mirusko is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 14
Parsing a file

Hi guys,
what is the easiest way in ksh to parse a file? For example I want to find out a value of MIN_PASSWORD_LENGTH from /etc/default/security and I want to make sure it has a certain value. Of course I need to make sure the line is commented out, or if the are more lines with MIN_PASSWORD_LENGTH that at least one of them is commented out ...

thanks,
Kubko