Thanks for the reply, Parish.
I realised that I stupidly assumed that mv would have a recursive tag much like cp, however after reading the man page I see this is not the case.
Taking your idea of using a for loop, I ended up with the following bash script
Code:
IFS=$'\t\n'
for i in $( find . -iname '*.jpg' )
do echo "Renaming " $i
cp $i ${i%/*}/folder.jpg
done
I have tested it out on some dummy folders and it works great.
Had to add in that first line because all of my files have spaces in the name, also I took the idea of using cp instead of mv, just incase it all goes FUBAR
Rather than using it as a script I just condensed it into one line, and here it is just in case anyone needs it.
Code:
IFS=$'\t\n'; for i in $( find . -iname '*.jpg' ); do echo "Renaming " $i; cp $i ${i%/*}/folder.jpg; done