I tried to open a lot of files (10,000+) with cat and them merging them into one like this:cat * > ~/Desktop/lol.xmlBut it returned this error:-bash: /bin/cat: Argument list too longThis means that its too long/large, what other way could I do this?
Cannot merge files using cat
bash;cat
There's a limit for the number of arguments a command can take. A workaround is to use a for loop :for file in *; do cat $file; doneThe maximum can be displayed with :$ getconf ARG_MAX 