#!/bin/sh
for f in *.$1
do
mv "$f" "${f%$1}$2"
done
I've named this script chgext, and use the following command to rename multiple filename extensions:
~$: chgext JPG jpg
This script will rename the filename extension, for example an uppercase 'JPG' extension, into a lowercase 'jpg' extension of all files in the same directory matching your criteria.
URL: Example using chgext
Continue reading... Decompressing *.RAR on a Mac OS X can't be done by default. Of course you could use UnRarX to do this job, though not my cup of tea. I like command-line utilities e.g. par2cmdline and unrar. This post will help you installing the freeware unrar command-line tool from Rarlab.
InstallationDownload the full package containing both rar (shareware) and unrar (freeware) from the Rarlab website. I've chosen the RAR 3.70 for Mac OS X package (rarosx-3.7.0.1.tar.gz). Decompress the package (just double click on the .tar.gz file) and you will see a new folder, named rar, containing the necessary files.
Continue reading...We all enjoy music, right? Playing your favorite music on a computer isn't difficult. But what if you are a Mac user having hundreds of GB's of MP3 files on an external harddrive?
Why
When I bought a new MacBook it came with iTunes as the default (and probably best) music player from Apple. I'm not going to discuss what music player is better. People claim you're able to work with an Apple right out of the box, so iTunes it is.
Having my music stored on an external drive will keep my laptop's harddrive clean and gives me enough free disk space for storing documents, pictures, games, videos...you know, fun stuff.
Installing a clean version of WordPress 2.2 also gave me a nice chance to update the theme. I've chosen to install the GlossyBlue theme created by N.Design Studio. He did an excellent job on creating this theme!
Continue reading...