User Tools

Site Tools


ops102:windows_scripting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ops102:windows_scripting [2024/11/18 05:42] chrisops102:windows_scripting [2024/11/29 21:02] (current) chris
Line 78: Line 78:
   echo The current date is:   echo The current date is:
   date /t   date /t
- 
-If this is save into the file named "now", the permission could be set with this command: 
- 
-  $ chmod u+rx now 
  
 The script can then be executed. Normally, the current working directory is not searched, so to run the a script in the current directory, you will need to explicitly specify the directory name like this: The script can then be executed. Normally, the current working directory is not searched, so to run the a script in the current directory, you will need to explicitly specify the directory name like this:
  
-  $ ./now+  now
   The current date is:   The current date is:
   2024-12-11   2024-12-11
Line 259: Line 255:
   value1 LSS value2    True if the value1 less than value2 ​   value1 LSS value2    True if the value1 less than value2 ​
   value1 LEQ value2    True if the value1 less/equal to value2​   value1 LEQ value2    True if the value1 less/equal to value2​
-  value1 GTR value2    True if the value1 less/equal to value2​ +  value1 GTR value2    True if the value1 greater than value2​ 
-  value1 GEQ value2    True if the value1 less/equal to value2​+  value1 GEQ value2    True if the value1 greater than or equal to to value2​
  
 To force a string comparison, enclose ''value1'' and ''value2'' in quotes. Otherwise, the shell will determine if the variables appear to contain integer values and compare them as integers, or otherwise compare them as strings. To force a string comparison, enclose ''value1'' and ''value2'' in quotes. Otherwise, the shell will determine if the variables appear to contain integer values and compare them as integers, or otherwise compare them as strings.
ops102/windows_scripting.1731908574.txt.gz · Last modified: 2024/11/18 05:42 by chris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki