I have hundreds of files of the form
~/foo.x.y. The files are
~/foo.0001.0010 ~/foo.0011.0020 ~/foo.0021.0030 ... ~/foo.4371.4378
I want to combine all of these files into a big file
~/results/output.txt where the order is preserved. I'm fairly certain that
$ cat ~/foo* > ~/results/output.txt
accomplishes this but I'm not sure if this command will respect the ordering of my
foo files. Does this command work? If not, how can I accomplish my task?