Though actually I don't like the ideafunction go { if [ $1 = "--add" ];then perl -pi -ne 's/^\(UNKNOWN/($2) cd $3;;\n(UNKNOWN/' ~/.bashrc fi case $1 in (tmp) cd $HOME/tmp;; (home) cd $HOME/home;; (UNKNOWN) true ;; esac }
In reply to Re: Appending in a switch case statement
by zwon
in thread Appending in a switch case statement
by diffredential
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |