dimanche 1 juin 2014

Recursively copy user-executable files


Vote count:

0




How can I recursively copy all user-executable files in a folder to another folder?


Example, say I have


In folder folder/one:



-rwxrwxr-x 1 user group 7777777 Jun 1 12:00 executable1
-rw-rw-r-- 1 user group 4444 Jun 1 12:00 text1.txt


In folder folder/two:



-rwxrwxr-x 1 user group 7777777 Jun 1 12:00 executable2
-rw-rw-r-- 1 user group 4444 Jun 1 12:00 text2.txt


it should only recursively copy executable1 and executable2 from folder to the destination folder without preserving original hierarchy.


Destination folder should have:



-rwxrwxr-x 1 user group 7777777 Jun 1 12:00 executable2
-rwxrwxr-x 1 user group 7777777 Jun 1 12:00 executable1


asked 45 secs ago






Aucun commentaire:

Enregistrer un commentaire