Say I want to send the output of to commands into another.
cat a.txt && ls
I can do this:
fish -c "cat a.txt && ls" | another_command
But it seems clunky, is there a way to do this without running a new instance?
use a begin...end
block
begin; cat a.txt; ls; end | another_command
or with whitespace
begin
cat a.txt
ls
end | another_command
another_command
?