Skip to content

Instantly share code, notes, and snippets.

@maeharin
Created December 28, 2012 01:57
Show Gist options
  • Save maeharin/4393836 to your computer and use it in GitHub Desktop.
Save maeharin/4393836 to your computer and use it in GitHub Desktop.
スペース区切りのテキストファイルを読み込んで、各行の最初の列だけ抜き出し、新たなファイルに保存
ruby -ane 'puts $F[0]' hoge.txt > hoge2.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment