英文字典中文字典


英文字典中文字典51ZiDian.com



中文字典辞典   英文字典 a   b   c   d   e   f   g   h   i   j   k   l   m   n   o   p   q   r   s   t   u   v   w   x   y   z       







请输入英文单字,中文词皆可:

grep    
n. 文本查找工具

文本查找工具

A {Unix} command for
searching files for lines matching a given {regular
expression} (RE). Named after the {qed}/{ed} editor
subcommand "g/re/p", where re stands for a regular expression,
to Globally search for the Regular Expression and Print the
lines containing matches to it. There are two other variants,
fgrep which searches only for fixed strings and {egrep} which
accepts extended REs but is usually the fastest of the three.

Used by extension to mean "to look for something by pattern".
When browsing through a large set of files, one may speak of
"grepping around". "Grep the bulletin board for the system
backup schedule, would you?" See also {vgrep}.

[{Jargon File}]

Global Regular Expression Print (Unix)


请选择你想看的字典辞典:
单词字典翻译
grep查看 grep 在百度字典中的解释百度英翻中〔查看〕
grep查看 grep 在Google字典中的解释Google英翻中〔查看〕
grep查看 grep 在Yahoo字典中的解释Yahoo英翻中〔查看〕





安装中文字典英文字典查询工具!


中文字典英文字典工具:
选择颜色:
输入中英文单字

































































英文字典中文字典相关资料:


  • How do I recursively grep all directories and subdirectories?
    Recursive grep is, of course, still preferable if available, but there's little reason to avoid the xargs recipe (do use -H for the grep to avoid the final invocation of grep getting passed only a single filename, though)
  • What is the difference between grep -e and grep -E option?
    I am trying to understand the difference between grep -e and grep -E Now from grep manpage I got:-E, --extended-regexp Interpret PATTERN as an extended regular expression (see below) -e PATTERN, --regexp=PATTERN Use PATTERN as the pattern; useful to protect patterns beginning with - The above explanation does not make sense for me
  • linux - What is the point of grep -q - Stack Overflow
    Here's an example of grep -q: scanning the output of a command for a particular value, then performing an action if the value is found: if docker context ls | grep -q dm-manager; then docker context rm dm-manager fi If the list of docker contexts contains dm-manager then remove docker context dm-manager
  • What expressions would match the pattern (^[0-9]. . [a-zA-Z ]+$) in grep . . .
    Let's break it down First of all, note that this RegExp uses the "Extended regular expression" syntax (ERE) - the + is a metacharacter that doesn't work in the "Basic regular expression" syntax that grep uses by default (meaning it would match itself and require a literal + at that position), so if you want to use that RegEx with grep, you will need to pass the -E option
  • Whats the difference between grep -r and -R - Stack Overflow
    grep -r foobar will only grep the files inside this directory, grep -r foobar foo will grep the files in the parent directory ( ) (following the symlink given as an argument), grep -R foobar will also grep the files in the parent directory (following the symlink not given as an argument but found while traversing the current directory)
  • How can I use grep to find a word inside a folder?
    grep -nr 'yourString*' The dot at the end searches the current directory Meaning for each parameter:-n Show relative line number in the file 'yourString*' String for search, followed by a wildcard character -r Recursively search subdirectories listed
  • regex - Using the star sign in grep - Stack Overflow
    grep '*abc*' file2 This one return *abc, because there is a * in the front, it matches the pattern *abc* (3) grep '*abc*' file3 This one return *abcc because there is a * in the front and 2 c at the tail so it matches the pattern *abc* (4) grep ' *abc *' file1 This one return abc because * indicate 0 or more repetition of any character
  • regular expression - How to run grep with multiple AND patterns? - Unix . . .
    For potentially gzip-compressed files, you can use zgrep which is generally a shell script wrapper around grep, and use one of the grep solutions above (not the ast-open one as that grep implementation cannot be use by zgrep) or you could use the PerlIO::gzip module of perl which can transparently uncompress files upon input:
  • Grep: how to add an OR condition? - Unix Linux Stack Exchange
    The grep utility looks for patterns inside files; it's irrelevant if what you care about is the file's name Shell wildcard patterns are the way to match files by their names In modern shells, wildcard patterns have the same expressive power as regular expressions (i e what you can do with one, you can do with the other), but they have a
  • Counting number of lines in a file using grep and wc
    You don't need grep to count the number of lines, wc is sufficient : wc -l filename should work grep is useful only if you wan't to filter the file content, say you want to count the number of lines that contain the word life, then : grep "life" filename | wc -l will give you the results





中文字典-英文字典  2005-2009