13Jan/100
Recursively Rename Files Linux
I was just doing this today and thought I would post the bash script I wrote to do the job. This particular example finds all jpeg files recursively and renames them to .jpg but you could just change the .jpeg part to anything and / or the .jpg part.
You just have to paste this into a .sh file and run it with sh filename.sh or set it's executable bit and run it with ./filename.sh
#!/bin/bash find ./ -type f -name "*.jpeg" | while read FILEdonewname=`echo $FILE | sed s/\.jpeg$/\.jpg/`echo "renaming $FILE to $newname"mv "$FILE" "$newname"done
8Jan/100
Great day
Well today turned out a thousand times better than I had expected today. Initially I thought I was having a tooth removed which would have been horrible and then having to wait to look for a new car but in-fact the dentistry had to be postponed and I got myself a new car hehe.
Here is a quick pic of it, I will take a few more in the future in the light. It was a bit scary driving it for the first time in all the snow we have been having here recently though and on the motorway for the first time, but it all turned out well.
It's great how quickly you can get taxed and insured these days especially being as I am a new driver I was able to get insured for about 670 pounds would certainly recommend using go compare.
I just hope when I release the new version of my software at work soon I will be so lucky.