Exercise 31: P.A.R. Inc.


The trickiest part about this shell script is that the variable needs to be treated as a number. This can be accomplished with the following:

 #incrmt #!/bin/bash typeset  i x  x=$1 until [ "$x"  lt 1 ] do echo $x let x="$x-1" done 

Make sure that the owner has permission to execute the script by entering chmod u+x /usr/INCRMT.



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