3 ms·
You know, the whole point of cat is that you don't need to use it in a loop. It concatenates files. It wasn't named after a small furry mammal.
by cbd1984 12y ago
You know, the whole point of cat is that you don't need to use it in a loop. It concatenates files. It wasn't named after a small furry mammal.
- agumonkey 12y agoCan you explain a little more ?
- scott_karana 12y agoYou can just do this: cat $(ls -1rt) > complete.ts
- agumonkey 12y agoAight, I thought he meant globbing, I was worried about order. Point taken.
- scott_karana 12y agoWell, he probably did mean globbing. I suspect glob collation is the same as the collation that `ls` uses for any given locale, so... :-)
- agumonkey 12y agoAnd AFAIK, globbing can't be told to order by time, thus producing an interesting director's cut of the original video (I actually tried).