Sagayaraj wrote:
Dear ALL,

  How to copy the specific files only in cp command in RHEL 5 or all linux
flavor?
Ex i've 1000 files in a folder, i want to copy only 715 files olny in that
folder to paste other place. what command using for that..waiting for your
prompt reply.


cp $(find 1000filesfolder -type f | head -750) destinationfolder

(or)

find 1000filesfolder -type f | head -750 | while read FILE; do cp ${FILE} destinationfolder; done

'man find' is your friend,

Thanks,
Mohan R

_______________________________________________
To unsubscribe, email ilugc-requ...@ae.iitm.ac.in with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to