situation normal all fucked up


monday10december2007


add this to your .inputrc to enable parenthesis matching in bash and other readline apps (and check out rlwrap for everything else):

set blink-matching-paren on
tags: bash # 0 comments @ code

thursday31may2007


a few bash tricks:

M-u               uppercase word
M-l               lowercase word
M-c               capitalize word
M-t               transpose words
C-t               transpose characters
C-r               search backward in history
C-z               suspend current command

${foo:0:1}        substring expansion
${foo/regex/bar}  character substitution
$((foo+bar))      arithmetic evaluation

!!                previous command
!^                first argument of the previous command
!$                last argument of the previous command
!foo              most recent command starting with 'foo'
^foo^bar          previous command with 'foo' replaced by 'bar'
tags: bash # 0 comments @ code






revision 697 today's Prickle-Prickle, 69th of Chaos, 3176 Copyleft all rites reversed