A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.

December 6, 2011

bash command line job...

Hi all,

I don't get it working, following is my problem:

I have a LOT of directories with 631000 files (.JPG) in it. Quite some directories have SUB-directories called "Foto's".

What I like to do is FIND all those SUB-directories out of the bunch directories, copy all the files out of that "Foto's" directory to 1 level higher and remove the just empty "Foto's" directory.

Following works:
find / -name ./mnt/www/ -name Foto\'s

I get a list of all the Directories I like to get rid of...but first the files in these directories I have to copy a level higher. Who can help me out please??


Click Here!