My goal is to write a script that will redirect the output of a bash command to a new folder. The command I am utilizing generates an output that consists of several different files and file types, some folders etc.. I am relatively new to this, and am confused because when I wish to output I know hot to do it when it is something simple such as this:
echo "blah blah" > /some/location/file.txt
But where I run into trouble is trying to redirect multiple different things with unknown names. (i.e. in the example above if I didn't know the output should be titled file.txt or even that its text) help is much appreciated