Skip to content

Instantly share code, notes, and snippets.

@i03nomura1y
Created November 19, 2012 03:17
Show Gist options
  • Save i03nomura1y/4108768 to your computer and use it in GitHub Desktop.
Save i03nomura1y/4108768 to your computer and use it in GitHub Desktop.
bash alias: SJIS に nkf して less する
# ファイル名以外の引数無効。
# チェックしてない
s-less() {
if [ -n "$1" ];then
# 引数あり
nkf -s $@ | less
else
# 引数なし
less
fi
}
alias s-less="s-less"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment