I know in bash I can run one command after another by separating them by semicolons, like
$ command1; command2
Or if I only want comm
comm
The following should do it:
(command1; command2)
Note the added parentheses.