Aug 22, 2001 #1 mikeboz MIS May 18, 2000 41 US I would like to copy all files in a directory structure, into one level. example:: dira contains dirb dirc file1 file2 file3 dirb contains dird file4 file5 dirc contains file6 file7 dird file8 file9 some copy command: blah blah blah results: /tmp contains file1-file9
I would like to copy all files in a directory structure, into one level. example:: dira contains dirb dirc file1 file2 file3 dirb contains dird file4 file5 dirc contains file6 file7 dird file8 file9 some copy command: blah blah blah results: /tmp contains file1-file9
Aug 22, 2001 1 #2 unixqueen Vendor Oct 6, 2000 182 GB Hi Mikeboz, If it is just the files that you want, you could use the find command, something like this for file in `find dira -depth -type f` do move $file /tmp done Hope this is of some help Regards Queenie Upvote 0 Downvote
Hi Mikeboz, If it is just the files that you want, you could use the find command, something like this for file in `find dira -depth -type f` do move $file /tmp done Hope this is of some help Regards Queenie
Aug 23, 2001 Thread starter #3 mikeboz MIS May 18, 2000 41 US I new it was an easy one. Never did know what to make of -depth. thanks, that did it. mike Upvote 0 Downvote