[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BASH trivia




Some of you may remember our old SILUG member, Randy Flood.  He's 
somewhere warmer these days, and sent me this interesting BASH tip.  I 
thought some of you might find it interesting as well.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

BASH SHELL OPTION

If you are using bash shell. There is
a way to cd a particular directory
even if you spelled incorrectly on the
command line. Set the shell option to:

shopt -s cdspell

eg:-

Suppose you want to cd to "cd /tmp"
and you have miss typed to "cd /pmp"
still it will cd to "cd /tmp".

This setting will be very usefull if
you have a long named directory.


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Hope you like it

Randy


-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.