zoukankan      html  css  js  c++  java
  • [转]GREP for Windows

    http://www.interlog.com/~tcharron/grep.html

    A very flexible grep for windows

    GREP is a well known tool in the unix environment. There are several ports available that I came across for Windows. However, NONE of them allowed me to search through subdirectories (this functionality is easy on unix using the shell's file manipulation tools). I modified GNU grep 2.0 to allow searching of subdirectories.

    To search subdirectories, do something like this:

    grep -S "searchtext" *.txt
    grep -S "searchtext" personalfiles*.txt
    grep -S searchtext C:*.*

    The most recent version I compiled is GREP20d_WIN.ZIP. It was released on January 26, 2001.

    Revisions (Jan 26, 2001)

    • 2.0b Fixed display of filenames (-h option, as well as decision to print them based on number of files being checked)
    • 2.0c Fixed display of paths if the "-l" option was used with wildcards
    • 2.0d Jan 26, 2001
      • Fixed display of paths if the "-c" option was used with wildcards
      • Changed code to accept standard in from piped output. With earlier versions, the "-" was required to expicitly indicate that redirection was being used.

    Note
    Versions before 2.0d did not work well with redirection, such as:

    dir *.* /sub | grep -i DLL | more

    This will nearly always cause a crash with versions of grep/windows before 2.0d. In these cases, use explicit rediretion, or upgrade to version 2.0d. The explicit redirection syntax is:

    dir *.* /sub | grep -i DLL - | more

    This page has been accessed

    &ft=6&frgb=snow&md=6&pad=Y&dd=AA"> -->

    times since November 17, 1997.

  • 相关阅读:
    查询表中字段相同的记录的sql
    c++ builder调用htmlencode
    win7 64位下使用regsvr32注册activex dll
    在sql 2005里创建一个和sa一样权限的账号
    c++ builder 使用indy http调用webservice方法
    sql 2005创建只读帐号的另一种方法
    C#如何用Graphics画出一幅图表
    C#中字符串的处理
    SQL语句快速介绍
    C#如何开发扫雷游戏
  • 原文地址:https://www.cnblogs.com/horizonli/p/grep.html
Copyright © 2011-2022 走看看