摘要:
#!/bin/bashinc=""tab="\t"lsallfile () {for i in ${1}/*do echo -e "$inc${i##*/}" if [ -d "$i" ] then inc="$inc$tab" echo "" lsallfile "${i}" echo "" inc=${inc#"$tab"} fidone}if [ -z $1 ]then lsallfile ... 阅读全文
摘要:
Table 5-3. Arithmetic test operators Test Comparison -lt Less than -le Less than or equal -eq Equal -ge Greater than or equal -gt Greater than -ne Not equal Table 5-2. File attribute operators Operato... 阅读全文
摘要:
4.3.4. Extended Pattern MatchingBash provides a further set of patternmatching operators if the shoptoption extglob is switched on. Eachoperator takes one or more patterns, normally strings, separated bythe vertical bar ( | ). The extended pattern matching operatorsare given in Table 4-3.[8][8] Be a 阅读全文