Tag: Bash

Enchanted Bashmarks - terminal directory bookmarks

Posted on January 14, 2012 in Unix Bash Scripting

Bashmarks is a shell script that allows you to save and jump to commonly used directories.

Read more...

Using sed

Posted on October 09, 2011 in Unix Bash Scripting

Useful sed commands Delete nth line inplace sed -i .tmp '<n>d' <filename> Get the nth line sed '<n>q;d' <filename> Delete the first 10 lines of a file sed '1,10d' Delete lines matching pattern sed '/pattern/d'

Read more...

ls colours

Posted on September 10, 2011 in OSX Bash

To get ls colours on a mac add the follow to your .bash_profile. export CLICOLOR=1 export LSCOLORS=ExFxCxDxbxegedabagacad

Read more...