jake RSS


jakehofman.com

Archive

Nov
15th
Sun
permalink

tip: bash

use parameter expansion to remove file extensions in shell scripts, e.g. ${file%.*} http://bit.ly/4mJ8ev

tips  bash 
May
1st
Fri
permalink

tip: bash

poor man’s note-taking command: alias note=”emacs ~/note_`date +%Y%m%d%H%M`.txt” (via chw: http://bit.ly/vVucy)

tips  bash 
Mar
6th
Fri
permalink

tip: bash

to read a password silently (without echo-ing), use read -s -p “password: ” varname http://bit.ly/yE4ht

tips  bash 
Jan
28th
Wed
permalink

tip: bash

to prevent shell history from being saved to .bash_history, unset HISTFILE before logging out

tips  bash 
Oct
2nd
Tue
permalink

tip: bash

check out xxdiff or tkdiff for gui that sits on top of diff

tips  bash 
Aug
31st
Fri
permalink

tip: bash

run a command from your history using ! followed by the corresponding line number in your history

tips  bash 
Aug
14th
Tue
permalink

tip: bash

${!#} for the last command line argument

tips  bash 
Jul
16th
Mon
permalink

tip: bash

ctrl-r to search history

tips  bash 
Jul
13th
Fri
permalink

tip: bash

!! will give the arguments of the previously-executed command

tips  bash 
Jul
10th
Tue
permalink

tip: bash

bc -l gives sin, cos, etc

tips  bash