001、
[root@pc1 test2]# ls test.sh [root@pc1 test2]# cat test.sh #!/bin/bash seq 10 > a.txt xxxxxx && echo 20 done ; rm a.txt [root@pc1 test2]# bash test.sh test.sh: line 5: xxxxxx: command not found [root@pc1 test2]# ls test.sh
002、修改程序
[root@pc1 test2]# ls test.sh [root@pc1 test2]# cat test.sh #!/bin/bash seq 10 > a.txt xxxxxx && echo 20 done && rm a.txt [root@pc1 test2]# bash test.sh test.sh: line 5: xxxxxx: command not found [root@pc1 test2]# ls a.txt test.sh
标签:test2,pc1,用法,sh,&&,linux,test,txt,root From: https://www.cnblogs.com/liujiaxin2018/p/17719421.html