bashワンライナーで関数宣言

bashワンライナーで関数を書こうとしてつまずいた。
二つ下のディレクトリをなんどもgrepする必要があるので書いたのだが

search_proj() { grep -i $1 */*.scala; }


のセミコロンを忘れてて、「あれ? 定義できない」の繰り返し。

Comments

Popular posts from this blog

Subclassing and Signal connect on a same widget crashes PySide application on exit.

Calling OpenCV functions via Cython from Python 3.X.

Showing CPU/Memory usage on tmux status bar(tmuxのステータスバーにCPUとMemoryの使用状況を表示する)