|
| cool Statistics |
| | coolcommands: | 1338 | | Categories: | 83 | | Total queries: | 620176 | | Members: | 22813 | |
|
|
|
 |
|
|
Search coolcommands.com
 |
Submitted by:
lvo   |
coolcommand
how to test if the ascii value of a string precedes that of another string in a korn shell script |
Description
The test command evaluate a condition and, if its value is true, return a zero exit status; otherwise, return a nonzero exit status. An alternate form of the command uses [[ ]] rather than the word test.
# test string1 < string2
or
[[ string1 < string2 ]] |
Example
test $string1 < $string2; [[ $string1 < $string2 ]] |
Return to search results
 |  |  |  |
Random coolcommands
coolcommand: chmod - setting setuid or setgid
Example: chmod u+s file
[show me the details] |
coolcommand: how to remove a file whose name begins with a dash (-)
Example: rm -- -foo
[show me the details] |
coolcommand: how to find the name resolution order
Example: /etc/nsswitch.conf
[show me the details] |
coolcommand: dd - read a large file for testing
Example: dd if=file_1GB of=/dev/null bs=1m count=1k
[show me the details] |
|
|
coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts
|  |  |  |  |
|
|
|
|
 |
|
|
|
Top 5 Submitters
|
|---|
| lvo | 1160 |
| audet | 37 |
| kah00na | 32 |
| Mariom | 24 |
| lebjf000 | 14 |
Top 5 Searches
|
| Category Solaris | 51943 |
| Category AIX | 49009 |
| Category General UNIX | 47532 |
| solaris | 23554 |
| aix | 22739 |
|
|
|
|