Showing posts with label bash. Show all posts
Showing posts with label bash. Show all posts
October 13, 2011
March 28, 2011
UTF8 設定
.bash_profile
LC_CTYPE=zh_TW.UTF-8; export LC_CTYPE
LC_ALL=zh_TW.UTF-8; export LC_ALL
LANG=zh_TW.UTF-8; export LANG
irssi
/set term_charset UTF-8
/set recode_transliterate ON
/set recode_fallback UTF-8
/set recode_out_default_charset UTF-8
/recode add #channel Big5/UTF-8
/recode - can check channel setting
screen
Ctrl-a :encoding big5 utf8 - for big5 screen
June 02, 2009
add switch in bash script
case $1 in
1)
echo "1"
;;
2)
echo "2"
;;
*)
echo "default"
;;
esac
$1: first argument
Ref: http://unix.derkeiler.com/Newsgroups/comp.unix.shell/2004-04/0466.html
Subscribe to:
Posts (Atom)