etch  ] [  etch-m68k  ] [  lenny  ] [  squeeze  ] [  sid  ]
[ Source: grep  ]

Package: grep (2.5.4-4) [essential]

GNU grep、egrep,及 fgrep

'grep' 是在檔案裡搜尋文字的工具,它可以用在命令行或指令稿裡。 即使你不想使用,你系統裡的其它套件還是可能會用到。

GNU 家族的 grep 工具可能是"grep 最快速的西部神槍手"了。 GNU grep 建構於快速的 lazy-state 匹配決定(速度大約是普通 Unix egrep 的 兩倍),並混合了 Boyer-Moore-Gosper 演算法。使用常規表示式搜尋固定字串時, 可以排除不可能的文字,不需要檢查每個字元, 結果通常比 Unix grep 或 egrep 快很多倍。(不過如果常規表示式有包含 backreferencing,就會比較慢)

Tags: Implemented in: C, User Interface: Command Line, Role: Program, Scope: Utility, Application Suite: GNU, Purpose: Searching, Works with: Text

Other Packages Related to grep

  • depends
  • recommends
  • suggests
  • dep: libc6 (>= 2.3.4) [hppa, i386, mips, mipsel]
    GNU C 函式庫:共用函式庫
    also a virtual package provided by libc6-udeb
    dep: libc6 (>= 2.4) [armel, powerpc, s390]
    dep: libc6 (>= 2.6) [sparc]
    dep: libc6 (>= 2.7-1) [amd64]
  • dep: libc6.1 (>= 2.3.4) [ia64]
    GNU C 函式庫:共用函式庫
    also a virtual package provided by libc6.1-udeb
  • dep: libgcc1 (>= 1:4.3) [armel]
    GCC 支援函式庫
  • sug: libpcre3 (>= 7.7)
    Perl5 相容正規表示法函式庫 - 執行期檔案

Download grep

Download for all available architectures
Architecture Package Size Installed Size Files
amd64 309.1 kB800 kB [list of files]
armel 300.7 kB1160 kB [list of files]
hppa 320.8 kB1180 kB [list of files]
i386 298.1 kB1156 kB [list of files]
ia64 373.0 kB1456 kB [list of files]
mips 310.9 kB1240 kB [list of files]
mipsel 310.6 kB1240 kB [list of files]
powerpc 311.2 kB1188 kB [list of files]
s390 314.4 kB1188 kB [list of files]
sparc 302.0 kB1176 kB [list of files]