Search for tabs, without -P, using 'grep'

后端 未结 2 1119
北海茫月
北海茫月 2021-01-11 19:20

I used to use grep -P successfully earlier, till I got a machine where grep is not compiled with Perl regular expression support. Now I am having trouble matchi

2条回答
  •  庸人自扰
    2021-01-11 19:33

    Try this instead:

    grep -G $'\t'
    

    For more info please see bug #23535: Grep Doesn't Support \t as a tab character.

提交回复
热议问题