將前一個指令的輸出做爲後一個指令的輸入shell
[root@centos01 ~]# cat err.txt | wc -l 1
[root@centos01 ~]# vim err.txt [1]+ Stopped vim err.txt [root@centos01 ~]# fg vim err.txt [1]+ Stopped vim err.txt [root@centos01 ~]# vim ttt.log [2]+ Stopped vim ttt.log [root@centos01 ~]# jobs [1]- Stopped vim err.txt [2]+ Stopped vim ttt.log [root@centos01 ~]# fg 2 vim ttt.log [root@centos01 ~]# jobs [1]+ Stopped vim err.txt
[root@centos01 ~]# a=111 [root@centos01 ~]# echo $a 111 [root@centos01 ~]# set | grep 111 _=111 a=111 [root@centos01 ~]# a="a$bc" [root@centos01 ~]# echo $a a [root@centos01 ~]# [root@centos01 ~]# a='a$bc' [root@centos01 ~]# echo $a a$bc [root@centos01 ~]# a=1 [root@centos01 ~]# b=2 [root@centos01 ~]# echo $a$b 12 [root@centos01 ~]# a='a$bc' [root@centos01 ~]# echo $a$b a$bc2 [root@centos01 ~]# c="a$bc" [root@centos01 ~]# echo $c a [root@centos01 ~]# echo "a$b"c a2c [root@centos01 ~]# export test001=111 [root@centos01 ~]# bash [root@centos01 ~]# echo $test001 111
環境變量配置文件vim