Name: vande Date: April 3, 2008 at 12:48:45 Pacific Subject: unix scripting OS: Windows xp, Windows CPU/Ram: 2.4 quad core Intel Model/Manufacturer: Dell, Dell, Dell
Comment:
i got this script that is some kind of sortinf for a database and it goes through and finds pattern's using if statements as shown here now all the months in the year are like this this month[1]=jan month[2]=feb E.T.C. then below it says for x in 1 2 3 4 5 6 7 8 9 10 11 12 so my guess is x will correspond for 1-12 right? Well below this declaration of x starts the if Example if ["$x" -le <---------- this right here is my next question is there some standard rule for how you can use if statements like what i mean is if[-le <---- it knows what this -le means or is for i tried if --help man if google yahoo how does it and where does it explain what -le is for i dont know if this has to do with starting if statments or just unix understands -le cause i tried -le outside of an if statment says it dont know
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE