When working with command line substitutions, one way to check for presence (or lack thereof) of a command line variable:
if [ "x$1" == "x" ];then ... fi
If it matches, then there was no command line variable, as in 'x matches x'.
|
November '25 |
|
||||
|---|---|---|---|---|---|---|
| Mo | Tu | We | Th | Fr | Sa | Su |
| Wednesday, November 12. 2025 | ||||||
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |