Skip to content

Instantly share code, notes, and snippets.

@musaprg
Created February 2, 2017 08:02
Show Gist options
  • Save musaprg/97126328d769c6ddacf0a1af28d3d60d to your computer and use it in GitHub Desktop.
Save musaprg/97126328d769c6ddacf0a1af28d3d60d to your computer and use it in GitHub Desktop.
フラグとかの解析用
echo --hoge=3 --fuga=3 --piyo=3 | awk '{for(i=0;i<$NF;i++){printf("%s\n",$i)}print $NF}'
@musaprg
Copy link
Author

musaprg commented Feb 2, 2017

(C表記POSIX標準外らしいし正直使いたくないけど仕方なかった)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment