|
- hua@hua:~$ E=0 ; while [ $E < 5 ] ; do ls ; E=$(($E+1)) ; done
- bash: 5: 没有那个文件或目录
- hua@hua:~$
- hua@hua:~$
- hua@hua:~$ E=0 ; while [ $E != 5 ] ; do ls ; E=$(($E+1)) ; done
- bin Desktop kid Mail scrothot win32bin
- debs goodies lynx_bookmarks.html Projects tmp Workspace
- bin Desktop kid Mail scrothot win32bin
- debs goodies lynx_bookmarks.html Projects tmp Workspace
- bin Desktop kid Mail scrothot win32bin
- debs goodies lynx_bookmarks.html Projects tmp Workspace
- bin Desktop kid Mail scrothot win32bin
- debs goodies lynx_bookmarks.html Projects tmp Workspace
- bin Desktop kid Mail scrothot win32bin
- debs goodies lynx_bookmarks.html Projects tmp Workspace
- hua@hua:~$
- hua@hua:~$
- hua@hua:~$ E=0 ; while [ $E -lt 5 ] ; do ls ; E=$(($E+1)) ; done
- bin Desktop kid Mail scrothot win32bin
- debs goodies lynx_bookmarks.html Projects tmp Workspace
- bin Desktop kid Mail scrothot win32bin
- debs goodies lynx_bookmarks.html Projects tmp Workspace
- bin Desktop kid Mail scrothot win32bin
- debs goodies lynx_bookmarks.html Projects tmp Workspace
- bin Desktop kid Mail scrothot win32bin
- debs goodies lynx_bookmarks.html Projects tmp Workspace
- bin Desktop kid Mail scrothot win32bin
- debs goodies lynx_bookmarks.html Projects tmp Workspace
- hua@hua:~$
复制代码
help test 里都有
- String operators:
- -z STRING True if string is empty.
- -n STRING
- STRING True if string is not empty.
- STRING1 = STRING2
- True if the strings are equal.
- STRING1 != STRING2
- True if the strings are not equal.
- STRING1 < STRING2
- True if STRING1 sorts before STRING2 lexicographically.
- STRING1 > STRING2
- True if STRING1 sorts after STRING2 lexicographically.
复制代码
虽然不是比较大小 , 但是比较长短总可以啊 |
|