Wednesday, 28 August 2013

Move file to corrosponding folder elsewhere - unix

Move file to corrosponding folder elsewhere - unix

I have files in a format like such:
dsaewitz@daniel-Ubuntu:/media/Spreadsheet_/Spreadsheet Archive/Live Shows$
tree Phish/
Phish/
„¥„Ÿ„Ÿ 1983 (03)
„  „¥„Ÿ„Ÿ 1983-12-02 - Harris-Millis Cafeteria, University of Vermont -
Burlington, VT
„  „  „¥„Ÿ„Ÿ II 01 Scarlet Begonias -.flac
„  „  „¥„Ÿ„Ÿ II 01 Scarlet Begonias -.ogg
„  „  „¥„Ÿ„Ÿ II 02 Fire on the Mountain.flac
„  „  „¥„Ÿ„Ÿ II 02 Fire on the Mountain.ogg
„  „  „¤„Ÿ„Ÿ ph1983-12-02.txt <---------- these files
„  „¥„Ÿ„Ÿ 1983-12-25 - Trey's Basement - Princeton, NJ
„  „  „¥„Ÿ„Ÿ 01 Jam.flac
„  „  „¤„Ÿ„Ÿ ph1983-12-25.txt <---------- these files
„  „¤„Ÿ„Ÿ 1983-12-xx - Bivuoac Jaun Demo
„  „¥„Ÿ„Ÿ 01 Slave to the Traffic Light.flac
„  „¥„Ÿ„Ÿ 02 Run Like an Antelope.flac
„  „¥„Ÿ„Ÿ 03 The Divided Sky.flac
„  „¥„Ÿ„Ÿ 04 Letter to Jimmy Page.flac
„  „¥„Ÿ„Ÿ 05 Aftermath.flac
„  „¥„Ÿ„Ÿ 06 Injest.flac
„  „¥„Ÿ„Ÿ 07 Prolonged Exposure -.flac
„  „¥„Ÿ„Ÿ 08 NO2 Jam -.flac
„  „¥„Ÿ„Ÿ 09 I Am Hydrogen.flac
„  „¥„Ÿ„Ÿ 10 Jam - Bazaar Synthesizer Experiment.flac
„  „¥„Ÿ„Ÿ 11 band introductions.flac
„  „¥„Ÿ„Ÿ 12 Little Squirrel.flac
„  „¤„Ÿ„Ÿ 1983-12-xx.txt <---------- these files
„¥„Ÿ„Ÿ 1984 (03)
„  „¥„Ÿ„Ÿ 1984-11-03 - Slade Hall, University of Vermont - Burlington, VT
„  „  „¥„Ÿ„Ÿ I 01 Ignition Sequence.flac
„  „  „¥„Ÿ„Ÿ I 02 In the Midnight Hour.flac
„  „  „¥„Ÿ„Ÿ I 03 Wild Child.flac
„  „  „¥„Ÿ„Ÿ I 04 St. Stephen Jam - Bertha.flac
„  „  „¥„Ÿ„Ÿ I 05 Can't You Hear Me Knocking.flac
„  „  „¥„Ÿ„Ÿ I 06 Camel Walk.flac
„  „  „¥„Ÿ„Ÿ I 07 Eyes of the World -.flac
„  „  „¥„Ÿ„Ÿ I 08 Whipping Post.flac
„  „  „¤„Ÿ„Ÿ ph1984-11-03.txt <---------- these files
... etc
and their mp3 counterparts in a folder as such:
dsaewitz@daniel-Ubuntu:/media/Spreadsheet_/Spreadsheet Archive/Live Shows$
tree mp3
mp3
„¥„Ÿ„Ÿ 1983 (03)
„  „¥„Ÿ„Ÿ 1983-12-02 - Harris-Millis Cafeteria, University of Vermont -
Burlington, VT
„  „  „¥„Ÿ„Ÿ II 01 Scarlet Begonias -.mp3
„  „  „¤„Ÿ„Ÿ II 02 Fire on the Mountain.mp3
„  „¥„Ÿ„Ÿ 1983-12-25 - Trey's Basement - Princeton, NJ
„  „  „¤„Ÿ„Ÿ 01 Jam.mp3
„  „¤„Ÿ„Ÿ 1983-12-xx - Bivuoac Jaun Demo
„  „¥„Ÿ„Ÿ 01 Slave to the Traffic Light.mp3
„  „¥„Ÿ„Ÿ 02 Run Like an Antelope.mp3
„  „¥„Ÿ„Ÿ 03 The Divided Sky.mp3
„  „¥„Ÿ„Ÿ 04 Letter to Jimmy Page.mp3
„  „¥„Ÿ„Ÿ 05 Aftermath.mp3
„  „¥„Ÿ„Ÿ 06 Injest.mp3
„  „¥„Ÿ„Ÿ 07 Prolonged Exposure -.mp3
„  „¥„Ÿ„Ÿ 08 NO2 Jam -.mp3
„  „¥„Ÿ„Ÿ 09 I Am Hydrogen.mp3
„  „¥„Ÿ„Ÿ 10 Jam - Bazaar Synthesizer Experiment.mp3
„  „¥„Ÿ„Ÿ 11 band introductions.mp3
„  „¤„Ÿ„Ÿ 12 Little Squirrel.mp3
„¥„Ÿ„Ÿ 1984 (03)
„  „¥„Ÿ„Ÿ 1984-11-03 - Slade Hall, University of Vermont - Burlington, VT
„  „  „¥„Ÿ„Ÿ I 01 Ignition Sequence.mp3
„  „  „¥„Ÿ„Ÿ I 02 In the Midnight Hour.mp3
„  „  „¥„Ÿ„Ÿ I 03 Wild Child.mp3
„  „  „¥„Ÿ„Ÿ I 04 St. Stephen Jam - Bertha.mp3
„  „  „¥„Ÿ„Ÿ I 05 Can't You Hear Me Knocking.mp3
„  „  „¥„Ÿ„Ÿ I 06 Camel Walk.mp3
„  „  „¥„Ÿ„Ÿ I 07 Eyes of the World -.mp3
„  „  „¤„Ÿ„Ÿ I 08 Whipping Post.mp3
... etc
I'd like to copy all of the .txt files into their appropriate mp3 folders.
How can I go about doing this from a unix terminal?
Thanks

No comments:

Post a Comment