I have a folder called "employee" and within that folder there are sub-folders with each employee name.

employee
>> amar
>> akbar
>> anthony

Each of these folders contain 1 or 2 files. There are around 50 employees. I want to copy all those files into a new folder "/home/employee_files" without the sub-folders. In other words, all the files should be available when I list "ls /home/employee_files"

link|improve this question

feedback

2 Answers

up vote 3 down vote accepted
$ cp employee/*/* /home/employee_files/
link|improve this answer
feedback
find /home/attachments/ -name "*.*" -exec scp {} /home/attachments_all/ \;
link|improve this answer
1  
Because, of course, all files have a period in them, but a directory never would... – womble Aug 26 '11 at 9:58
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.