How do I copy the first 10 files in Unix?

Duyên Trương

New member
How do I copy the first 10 files in Unix?
Answer
Copy the first n files from one directory to another
  1. find . – maxdepth 1 -type f | head -5 | xargs cp -t /target/directory. This looked promising, but failed because osx cp command doesn’t appear to have the. …
  2. exec in a few different configurations. This probably failed for syntax problems on my end : [/B]
 

Tìm kiếm

Back
Top