Created
March 1, 2013 07:49
-
-
Save t11a/5063124 to your computer and use it in GitHub Desktop.
tsvファイルの先頭の文字列をチェックしてヒットしたものを出力するワンライナー。
某プロジェクトで必要になったもの。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ruby -ne 'if $_.split("\t").first.to_i == 1 then puts $_ else end' test.tsv > 1.tsv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment