以下を ./bashrc とか ./bash_profile とかに書いておく。
$ calc(){ awk "BEGIN{ print $* }" ;}
保存して再ログインしたら、以下のようにターミナルで簡単な計算が出来る。
$ calc 11*11
121
Go to list of users who liked
More than 5 years have passed since last update.
以下を ./bashrc とか ./bash_profile とかに書いておく。
$ calc(){ awk "BEGIN{ print $* }" ;}
保存して再ログインしたら、以下のようにターミナルで簡単な計算が出来る。
$ calc 11*11
121
Register as a new user and use Qiita more conveniently
Go to list of users who liked