What does the semicolon do when it is run in a bash command?

前端 未结 3 777
既然无缘
既然无缘 2020-12-19 17:28

For example, when running

echo a; echo b

in the terminal, its output is:

a
b

It seems to me that the semi

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-19 17:45

    it's a way to simulate a newline.

    echo a; echo b
    

    is equivalent to

    echo a

    echo b

提交回复
热议问题