shell – all parameters – $* vs $@
Both $* and $@ expand to “all positional parameters”; in a nutshell – ”$@” is often desired as it handles spaces correctly; see man bash “Special Parameters”.
Both $* and $@ expand to “all positional parameters”; in a nutshell – ”$@” is often desired as it handles spaces correctly; see man bash “Special Parameters”.
A nice little script snippet I like to remember for automating quick stuff across multiple hosts. -t forces tty (so sudo will work); -q quiet – disable banners; -c script (“command”) to su. Presumes sudo doesn’t prompt for a password; otherwise, see [Expect][1] and [Exploring Expect][2] :-)
Using cygwin under Windows, I’ve setup my shell as zsh by editing the launch script:
I can never remember what those comments that change vim settings are called, and spend hours trawling through vim’s help.
There are three fields (separated by colons) that can be manipulated using the bang history command: