Category Archives: Bash

Upgrading bash in OSX

Upgrading To upgrade bash you need to install bash via brew: brew install bash then add /usr/local/bin/bash to /etc/shells and change the default shell with following command: chsh -s /usr/local/bin/bash Check if your bash version is ok: bash –version if its not, go to /etc/paths and shift /usr/local/bin to be over the /bin Reference… Read More »

m3u playlist creator

Following script will look for all .mp3 files in the current directory and create .m3u playlist from them Script: #!/bin/sh   DIR="./" SUFFIX="mp3" FILE_NAME="$1.m3u"   echo "#EXTM3U" >> $FILE_NAME   for i in "$DIR"/*.$SUFFIX do echo ${i%%} |sed ‘s#^.*/##’ >> $FILE_NAME done Command: sh FILENAME