Exercise 75: Nevada Design


Any number of scripts can be written to perform this simple function. Because you only want a number, it is important to parse out any information other than that number. The first example follows:

 #Example1.sh grep  c "." /etc/passwd 

Another example would be:

 #Example2.sh wc  l /etc/passwd | cut  d" "  f1 



NovellR Linux Certification Practium Lab Manual
NovellR Linux Certification Practium Lab Manual
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 192

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net