Linux grep 出 Tab 的幾種方法

Linux 想要使用 grep 把檔案裏面有 [Tab] 的內容找出來,有下面幾種方法:

  • grep -P '\t' example.txt
  • grep $'\t' example.txt
  • grep '[TAB]' example.txt
分享到Facebook
技術平台: Nasthon Systems