/home/l/g/tomotoboy >test -d sed.out /home/l/g/tomotoboy >echo $? 1 /home/l/g/tomotoboy >test -f sed.out /home/l/g/tomotoboy >echo $? 0 /home/l/g/tomotoboy >[ -f sed.out ] /home/l/g/tomotoboy >echo $? 0 /home/l/g/tomotoboy >[ -d sed.out ] /home/l/g/tomotoboy >echo $? 1 /home/l/g/tomotoboy >[ -x sed.out ] /home/l/g/tomotoboy >echo $? 1 /home/l/g/tomotoboy >[ -r sed.out ] /home/l/g/tomotoboy >echo $? 0 /home/l/g/tomotoboy >[ -w sed.out ] /home/l/g/tomotoboy >echo $? 0
/home/l/g/tomotoboy >ls -al sed.out sed.txt -rw-r--r-- 1 tomotoboy member 159 Jul 30 16:47 sed.out -rw-r--r-- 1 tomotoboy member 655 Jul 31 14:44 sed.txt /home/l/g/tomotoboy >[ -w sed.out -a -w sed.txt ] /home/l/g/tomotoboy >echo $? 0 /home/l/g/tomotoboy >[ -x sed.out -a -r sed.txt] -bash: [: missing `]' /home/l/g/tomotoboy >[ -x sed.out -a -r sed.txt ] /home/l/g/tomotoboy >echo $? 1 /home/l/g/tomotoboy >[ -x sed.out -o -r sed.txt ] /home/l/g/tomotoboy >echo $? 0
/home/l/g/tomotoboy >[ -z $HELLO ] /home/l/g/tomotoboy >echo $? 0 /home/l/g/tomotoboy >HELLO="hello" /home/l/g/tomotoboy >[ -z $HELLO ] /home/l/g/tomotoboy >echo $? 1 /home/l/g/tomotoboy >[ -n $HELLO ] /home/l/g/tomotoboy >echo $? 0 /home/l/g/tomotoboy >[ !-n $HELLO ] [ nohup -p 1 $HELLO ] -bash: [: too many arguments /home/l/g/tomotoboy >[ ![ -n $HELLO ] ] [ [ -z $HELLO ] -n $HELLO ] ] -bash: [: too many arguments /home/l/g/tomotoboy >HI="hi" /home/l/g/tomotoboy >[ $HELLO = $HI] -bash: [: missing `]' /home/l/g/tomotoboy >[ $HELLO = $HI ] /home/l/g/tomotoboy >echo $? 1 /home/l/g/tomotoboy >[ $HELLO != $HI ] /home/l/g/tomotoboy >echo $? 0
/home/l/g/tomotoboy >Nbr=10 /home/l/g/tomotoboy >Nbr1=20 /home/l/g/tomotoboy >echo $? 0 /home/l/g/tomotoboy >Nbr -ne Nbr1 -bash: Nbr: command not found /home/l/g/tomotoboy >$Nbr -ne $Nbr1 -bash: 10: command not found /home/l/g/tomotoboy >[ "$Nbr" -ne "$Nbr1" ] /home/l/g/tomotoboy >echo $? 0 /home/l/g/tomotoboy >[ "$Nbr" -e "$Nbr1" ] -bash: [: -e: binary operator expected /home/l/g/tomotoboy >[ "$Nbr" -eq "$Nbr1" ] /home/l/g/tomotoboy >echo $? 1 /home/l/g/tomotoboy >[ "$Nbr" -gt "$Nbr1" ] /home/l/g/tomotoboy >echo 4? 4? /home/l/g/tomotoboy >echo $? 0 /home/l/g/tomotoboy >[ "$Nbr" -gt "$Nbr1" ] /home/l/g/tomotoboy >echo $? 1 /home/l/g/tomotoboy >[ "$Nbr" -lt "$Nbr1" ] /home/l/g/tomotoboy >echo $? 0
/home/l/g/tomotoboy >[ "99" -ge "60" ] /home/l/g/tomotoboy >echo $? 0
/home/l/g/tomotoboy >expr 10 + 10 20 /home/l/g/tomotoboy >expr 45 / 4 11
/home/l/g/tomotoboy >expr 30 \* 100 3000
/home/l/g/tomotoboy >loop=0 /home/l/g/tomotoboy >loop=`expr $loop + 1` /home/l/g/tomotoboy >echo /home/l/g/tomotoboy >echo $? 0 /home/l/g/tomotoboy >echo $loop 1
home/l/g/tomotoboy >f=1.1 /home/l/g/tomotoboy >expr f + 10 expr: non-numeric argument /home/l/g/tomotoboy >echo $? 2 /home/l/g/tomotoboy >expr $HELLO + 10 expr: non-numeric argument /home/l/g/tomotoboy >echo $? 2 /home/l/g/tomotoboy >expr "$HELLO" + 10 expr: non-numeric argument /home/l/g/tomotoboy >echo $? 2 /home/l/g/tomotoboy >expr $f + 10 expr: non-numeric argument
/home/l/g/tomotoboy >expr $HELLO = "hello" 1 /home/l/g/tomotoboy >echo $? 0
/home/l/g/tomotoboy >cat sed.txt 605408211 pts/16 Jul 31 13:54 (218.0.1.42) caodejun pts/44 Jul 31 14:16 (219.148.133.31) duke1988 pts/45 Jul 31 14:41 (218.104.163.66) liuzk423 pts/6 Jul 20 08:27 (219.245.104.240) nefu_luyanshen pts/23 Jul 31 14:33 (218.25.6.142) nefu_luyanshen pts/48 Jul 31 12:59 (218.25.6.142) shuzigui pts/21 Jul 31 12:11 (121.35.248.193) tomotoboy pts/41 Jul 31 13:31 (219.221.99.155) waterlooz pts/25 Jul 31 08:48 (121.0.29.225) wsoangel pts/35 Jul 31 13:40 (116.233.219.10) xp55699312 pts/42 Jul 31 14:12 (61.152.132.103) zyy0904 pts/43 Jul 31 13:53 (125.33.195.36) /home/l/g/tomotoboy >VALUE=sed.txt /home/l/g/tomotoboy >expr $VALUE : tomotoboy , '.*' expr: syntax error /home/l/g/tomotoboy >expr $VALUE : tomotoboy 0 /home/l/g/tomotoboy > /home/l/g/tomotoboy >expr $VALUE:tomotoboy sed.txt:tomotoboy /home/l/g/tomotoboy >expr $VALUE: tomotoboy expr: syntax error /home/l/g/tomotoboy >expr $VALUE : tomotoboy 0 /home/l/g/tomotoboy >expr $VALUE :tomotoboy expr: syntax error /home/l/g/tomotoboy >expr $VALUE : tomotoboy 0 /home/l/g/tomotoboy >expr $VALUE : tomotoboy, '.*' expr: syntax error /home/l/g/tomotoboy >expr $VALUE : tomotoboy , '.*' expr: syntax error /home/l/g/tomotoboy >expr $VALUE : '.*' 7 /home/l/g/tomotoboy >expr $VALUE : tomotoboy 0 /home/l/g/tomotoboy >expr $VALUE : "tomotoboy" 0 /home/l/g/tomotoboy >expr $VALUE : "nefu_luyanshen" 0
Powered by: BlogJava Copyright © Gavin.lee