Is there any way to concatenate multiple text files in numerical order of the file names with one bash command ?
I tried this, but for some reason, the first three l
ls *txt | sort -n | xargs cat > all.txt
This gets a list of all the filenames and sorts it, then uses xargs to construct a command line from cat and the sorted list.
cat