Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のコマンドを書くと:
awk '$3 != 0.00 && $5 < 0.2' file
この条件は、$2 が空でない場合にのみ適用されます。
なんで?タブはそこにあります
タブ区切り文字を使用していることを awk に指定する必要がありますが、これは特殊なケースです。私は以下をテストしました:
echo -e "a\tb\tc\td\te" | awk -F$'\t' '{print NF}'
答えは5なので、うまくいきそうです。ここでは $ が必要です。