14,982
edits
| Line 30: | Line 30: | ||
==== by solution ==== | ==== by solution ==== | ||
* {{Gd}} [http://www.wingrep.com/ Windows Grep: Grep for Windows] v.2.3 {{Win}} | * {{Gd}} [http://www.wingrep.com/ Windows Grep: Grep for Windows] v.2.3 {{Win}} | ||
** file size | ** big file search: ok e.g. file size (1) > 90 MB: ok; (2) > 200MB: ok {Gd}} | ||
** [[Regular expression]]: supported | ** [[Regular expression]]: supported | ||
** refine the search: | |||
* {{Gd}} [http://www.sublimetext.com/ Sublime Text] v.2 | * {{Gd}} [http://www.sublimetext.com/ Sublime Text] v.2 | ||
** big file search: | |||
** Regular expression: supported<ref>[http://docs.sublimetext.info/en/latest/search_and_replace/search_and_replace_overview.html Search and Replace — Sublime Text Unofficial Documentation]</ref><ref>[http://www.boost.org/doc/libs/1_47_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html Perl Regular Expression Syntax - 1.47.0]</ref> | ** Regular expression: supported<ref>[http://docs.sublimetext.info/en/latest/search_and_replace/search_and_replace_overview.html Search and Replace — Sublime Text Unofficial Documentation]</ref><ref>[http://www.boost.org/doc/libs/1_47_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html Perl Regular Expression Syntax - 1.47.0]</ref> | ||
** refine the search: file name, file type (separated by , symbol, ex: {{kbd | key= *.html, *.htm}} to search the text in the html and htm file types) , folder。 Menu -> Find -> Find in files -> Where: Add include filters<ref>[http://www.sublimetext.com/forum/viewtopic.php?f=3&t=5803 Sublime Forum • View topic - Find in Files of Filetype]</ref> | ** refine the search: file name, file type (separated by , symbol, ex: {{kbd | key= *.html, *.htm}} to search the text in the html and htm file types) , folder。 Menu -> Find -> Find in files -> Where: Add include filters<ref>[http://www.sublimetext.com/forum/viewtopic.php?f=3&t=5803 Sublime Forum • View topic - Find in Files of Filetype]</ref> | ||
[https://zh-tw.emeditor.com/ EmEditor] ''$'' "支持大檔案以及Unicode的最佳Windows文字編輯器!" | |||
** big file search: ok {{Gd}} | |||
** [[Regular expression]]: supported | |||
** refine the search: | |||
* [http://tools.tortoisesvn.net/grepWin.html grepWin] v1.5.6.x | * [http://tools.tortoisesvn.net/grepWin.html grepWin] v1.5.6.x | ||
** file size | ** big file search: file size (1) > 90 MB: ok; (2) > 200MB: ok; | ||
** Regular expression: supported | ** Regular expression: supported | ||
** refine the search: | |||
** comment: If there are too many matches, the software will be frozen and get back after some minutes. {{exclaim}} | ** comment: If there are too many matches, the software will be frozen and get back after some minutes. {{exclaim}} | ||
* [http://notepad-plus-plus.org/ Notepad++] v5.9.8<ref>[http://npp-community.tuxfamily.org/documentation/notepad-user-manual/searching/searching-files Searching in Files]</ref> | * [http://notepad-plus-plus.org/ Notepad++] v5.9.8<ref>[http://npp-community.tuxfamily.org/documentation/notepad-user-manual/searching/searching-files Searching in Files]</ref> | ||
** file size | ** big file search: file size (1) > 90 MB: ok; (2) > 200MB: not ok {{exclaim}} (file is too big to be opened by Notepad++) | ||
** Regular expression: supported | ** Regular expression: supported | ||
** refine the search: file name, file type (separated by ; symbol, ex: {{kbd | key= *.html; *.htm}} to search the text in the html and htm file types) , folder | ** refine the search: file name, file type (separated by ; symbol, ex: {{kbd | key= *.html; *.htm}} to search the text in the html and htm file types) , folder | ||
* [http://gnuwin32.sourceforge.net/packages/grep.htm Grep for Windows] {{Win}} <abbr title="命令列介面, command-line interface">CLI</abbr> | * [http://gnuwin32.sourceforge.net/packages/grep.htm Grep for Windows] {{Win}} <abbr title="命令列介面, command-line interface">CLI</abbr> | ||
** big file search: | |||
** Regular expression: | |||
** refine the search: | |||
* [http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/findstr.mspx?mfr=true Findstr] {{Win}} | * [http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/findstr.mspx?mfr=true Findstr] {{Win}} | ||
** big file search: | |||
** Regular expression: | |||
** refine the search: | |||
* Grep command for {{linux}} <ref>[http://www.cyberciti.biz/faq/howto-search-find-file-for-text-string/ Finding a File containing a particular text string in Linux server]</ref> | * Grep command for {{linux}} <ref>[http://www.cyberciti.biz/faq/howto-search-find-file-for-text-string/ Finding a File containing a particular text string in Linux server]</ref> | ||
** multiple files: {{kbd | key=<nowiki>grep -ir "string to search" /path/to/directory</nowiki>}}<ref>options (1) -i, which means ignore case (2) -r means search recursively through an entire directory tree including the sub directory [http://www.linfo.org/grep.html How to use the grep command, by The Linux Information Project (LINFO)]</ref> | ** multiple files: {{kbd | key=<nowiki>grep -ir "string to search" /path/to/directory</nowiki>}}<ref>options (1) -i, which means ignore case (2) -r means search recursively through an entire directory tree including the sub directory [http://www.linfo.org/grep.html How to use the grep command, by The Linux Information Project (LINFO)]</ref> | ||
** single file: {{kbd | key=<nowiki>grep "string to search" /path/to/file</nowiki>}} ex: keyin {{kbd | key=grep avc /var/log/messages}} to find the SELinux log messages<ref>[http://wiki.centos.org/HowTos/SELinux HowTos/SELinux - CentOS Wiki] / [http://wiki.centos.org/zh-tw/HowTos/SELinux zh-tw/HowTos/SELinux - CentOS Wiki](in Chinese) </ref> | ** single file: {{kbd | key=<nowiki>grep "string to search" /path/to/file</nowiki>}} ex: keyin {{kbd | key=grep avc /var/log/messages}} to find the SELinux log messages<ref>[http://wiki.centos.org/HowTos/SELinux HowTos/SELinux - CentOS Wiki] / [http://wiki.centos.org/zh-tw/HowTos/SELinux zh-tw/HowTos/SELinux - CentOS Wiki](in Chinese) </ref> | ||
template (left blank intentionally) | |||
<pre> | |||
* software name | |||
** big file search: | |||
** Regular expression: | |||
** refine the search: | |||
</pre> | |||
==== by logical operators ==== | ==== by logical operators ==== | ||