Extract Lines when Column K is empty with AWK/Perl

后端 未结 3 1857
一生所求
一生所求 2021-02-19 04:23

I have data that looks like this:

foo 78 xxx
bar    yyy
qux 99 zzz
xuq    xyz

They are tab delimited. How can I extract lines where column 2 is

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-19 05:07

    grep -e '^.*\t\t.*$' myfile.txt
    

    Will grep each line consisting of characters-tab-tab-characters (nothing between tabs).

提交回复
热议问题