Nov
15th
Sun
15th
tip: bash
use parameter expansion to remove file extensions in shell scripts, e.g. ${file%.*} http://bit.ly/4mJ8ev
use parameter expansion to remove file extensions in shell scripts, e.g. ${file%.*} http://bit.ly/4mJ8ev
poor man’s note-taking command: alias note=”emacs ~/note_`date +%Y%m%d%H%M`.txt” (via chw: http://bit.ly/vVucy)
to read a password silently (without echo-ing), use read -s -p “password: ” varname http://bit.ly/yE4ht
to prevent shell history from being saved to .bash_history, unset HISTFILE before logging out