Skip to main content

Thread: CP command help


with ubuntu i'm new whole linux environment , i'm having trouble tracking down command i'm wanting here. perhaps here can help?

have music directory hundreds of subdirectories, 1 each album. in each album "folder.jpg" file of cover art specific album. need make copy of each , every 1 of files named "cover.jpg" need remain in original folder each being copied from. want 2 identical files in each folder, 1 named "folder.jpg" , 1 named "cover.jpg."

i'm thinking there must way recursively cp command, i'll buggered if can figure out command might be. copying recursively 1 single new folder easy enough, that's not want obviously.

help?

summin allong lines of;
code:
find . -type f *.jpg | while read filename; echo "i'm working on file $filename"; cp $filename `basedir $filename`cover.jpg; done


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] CP command help


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support