1

Rather than this:

$ command1 & 
$ command2 & 
$ …

Is there a way to do the equivalent in bash, but on a single line of input?

Zearin
  • 1,474
  • 2
  • 17
  • 36

1 Answers1

6

& is a command terminator, just like ;. You can include multiple commands on one line.

$ command1 & command2 &
$
chepner
  • 497,756
  • 71
  • 530
  • 681