FAO bash scripting gurus...

Associate
Joined
5 May 2006
Posts
1,251
Location
York
Ello
If anyone could help me with this it'd be much appreciated. I know my way around linux and the shell but am pretty rubbish when it comes to actual scripts.
I need a script that will look through every subdirectory in its parent and any files it finds inside said subdirectories it needs to match with a file in the parent with a different file extension, and then copy into the respective subdirectory.
Every file has a match as far as I'm aware. Any that don't can just be ignored.
I started doing it by hand but I have in excess of 2000 files to go through and I value my time :D

I realise it's a bit cheeky to ask this for free on the internet, but if anyone can take the time to throw one together you'd have my thanks :)
 
I could probably help you with this if you explain what you are trying to do a bit more clearly. The explanation doesn't fully make sense to me as it is...

Cheers

Sorry. I'm a bit rubbish at explaining stuff sometimes :o

dangerstat that is exactly what I was after and it's doing its stuff as we speak. Thanks very much!
 
Back
Top Bottom