Installing Grunt
Execute: npm install -g grunt-cli If problems with user-rights occurs, do: sudo chown -R <username> /usr/local/lib/node_modules/grunt-cli/
Execute: npm install -g grunt-cli If problems with user-rights occurs, do: sudo chown -R <username> /usr/local/lib/node_modules/grunt-cli/
To create a shortcut for command, first open: mate ~/.bashrc then add following line: alias sencha="/Users/uzza/bin/Sencha/Cmd/3.1.2.342/sencha" which means: alias new_command_name="command goes here"
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 http://stackoverflow.com/questions/16416195/how-do-i-upgrade-bash-in-mac-osx-mountain-lion-and-set-it-the-correct-path… Read More »
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 script.sh FILENAME