Mac and Linux Tip: Bulk Rename File Extensions With Terminal and/or Shell

How To: Bulk Rename File Extensions With Terminal/Shell

Lets say you have a bunch of .jpg files that you know are actually .rar files.

What would be the simplest way to rename them all?

First you’d navigate to the directory that contains the .jpg files with the “cd” command

For brevity lets assume the only .jpg files in this directory are .jpg files that you want to change

All you have to do is run this command

mv *.jpg *.rar

And all the .jpg files will have been renamed to .rar

If you want to learn more about the “mv” command just type in

man mv

Mac Tip: Add The Date To The OSX Menu Bar Without Installing Additional Software

I was surfing around and finally found out how to add the date to the OSX menu bar without installing additional software!

The tip says you need to use the medium category, but only the Long category for Times worked for me. This may be due to a difference between 10.5 and 10.4.

The following tip

Want to see the date in the menubar? Start by opening the International Preferences panel, and clicking the Formats tab.

In the Dates section, click Customize. Click the Show pop-up and select your choice of Short, Medium, etc. Now place the elements you want in the small “work area,” by dragging and dropping them from the Date Elements section. Once placed, you can click on some elements to see other options (Wednesday or Wed, for instance). Once you’ve built the date string you want, click once in the work area, and hit Command-A then Command-C to select the string and copy it. Now click Cancel to close the window without making any changes.

In the Times section, click Customize, and set the Show pop-up to Medium. In the small work area below the pop-up, place the curser where you want the date elements to start, and click to position the cursor. Now hit Command-V to paste the elements you just copied. You can further add characters and spaces to customize the look. If you want to remove an element (i.e. the year), click on it and use the Delete key. Click OK, and you’ll see the results in the menubar.


Since a picture is worth a thousand words here is how I have Time Long set

Mac Tip: Change The Login Screen In Mac OSX

Am I the only one that’s getting tired of Leopards fireworks loginscreen? It turns out you can replace that image with anything of your choice. Heres how.

Go to

Hard Drive > System > Library > CoreServices > DefaultDesktop.jpg

replace that jpg with your new backdrop

Type in your admin password when prompted and you’re done!

Just remember to backup the original DefaultDesktop.jpg incase you decide to switch back to the default at a later date.

Via Lifehacker Comment