2015-01-30から1日間の記事一覧

コードの行数を数える.

コードの行数を数えたい.ただそれだけ. Cのファイルを数える. find . -name "*.[ch]" | xargs wc -l CとPythonのファイルを数える. findの-oオプションを使う find . -name "*.[ch]" -o -name "*.py" | xargs wc -l "test"で始まるファイルは数えたくな…

Lagopus で ofctl

Lagopusでovs-ofctlみたいなことしたいってことで,Ryuのofctl-rest.pyを利用したofctl_scriptというbashスクリプトを書いた (hibitomo/ofctl_script · GitHub) ※ 他のOpenFlow1.3 Switchでも動きます。 ofctl_scriptを使うことで以下の事ができる flow, gro…