Running multiple commands in one line in shell

 

 

You are using | (pipe) to direct the output of a command into another command. What you are looking for is && operator to execute the next command only if the previous one succeeded:

posted @ 2018-12-18 15:10  kakaisgood  阅读(205)  评论(0)    收藏  举报