For a command like this,
ls -rt | tail -n 100
Will give the latest modified 100 files. What commandline tool should be used to pipe the result of this query to, so that all the filenames that is shows are copied to a single file. eg:
If a folder has 100 files, the above command will give me all the filenames. I want to copy all the data in all the files to a single 101th file. How do I do it?
Commandline to cat
each file to the destination is what I am looking for. But I don't know where to start.