How to run multiple Unix commands in one time?

前端 未结 8 1259
一向
一向 2021-02-06 02:04

I\'m still new to Unix. Is it possible to run multiple commands of Unix in one time? Such as write all those commands that I want to run in a file, then after I call that file,

8条回答
  •  一向
    一向 (楼主)
    2021-02-06 02:25

    If you want to use multiple commands at command line, you can use pipes to perform the operations.

    grep "Hello"  | wc -l
    

    It will give number of times "Hello" exist in that file.

提交回复
热议问题