Desktop search: Difference between revisions
Line 89: | Line 89: | ||
* {{kbd | key = <nowiki>grep 'pattern1\|pattern2' file_name </nowiki>}} | * {{kbd | key = <nowiki>grep 'pattern1\|pattern2' file_name </nowiki>}} | ||
* {{kbd | key = <nowiki>grep -E 'pattern1|pattern2' file_name </nowiki>}} | * {{kbd | key = <nowiki>grep -E 'pattern1|pattern2' file_name </nowiki>}} | ||
* {{kbd | key = <nowiki>cat file_name | grep -E 'pattern1|pattern2'</nowiki>}} | |||
'''AND''': match the lines which contains ''pattern1'' AND ''pattern2'' | '''AND''': match the lines which contains ''pattern1'' AND ''pattern2'' | ||
* {{kbd | key = <nowiki>awk '/pattern1/&&/pattern2/' file_name </nowiki>}} for {{Linux}} | * {{kbd | key = <nowiki>awk '/pattern1/&&/pattern2/' file_name </nowiki>}} for {{Linux}} | ||
* {{kbd | key = <nowiki>grep -E 'pattern1.*pattern2|pattern2.*pattern1' file_name </nowiki>}} {{exclaim}} order dependent | * {{kbd | key = <nowiki>grep -E 'pattern1.*pattern2|pattern2.*pattern1' file_name </nowiki>}} {{exclaim}} order dependent | ||
* {{kbd | key = <nowiki>cat file_name | grep -E 'pattern1.*pattern2|pattern2.*pattern1' </nowiki>}} {{exclaim}} order dependent | |||
=== Search text in single plain text file === | === Search text in single plain text file === |
Revision as of 09:19, 11 November 2016
List of desktop search software
full text and filename search
電腦的多個檔案的內文搜尋
- Copernic: Software to search, find, and manage information v.3.5.1
- range: folders and file types you specified
- refine the search: file name, file type, file size, date, folder. Quotation marks is available. More on Refine a search with operators
- comment: Nice for searching PHP scripts
- Ava Find
- range: drive only, could not specific folder
- DocFetcher ver. 1.1 beta 6 (經常找不到文件嗎?試試免費的跨平台桌面搜尋工具:DocFetcher | 簡睿隨筆@新世界)
- range: folders and files type you specified
- 搜尋: 支援輸入部分字串
- comment: not suitable for search PHP scripts
- $ Vista Glance Pro
- $ X1 Search 8 - Find Emails, Files, and SharePoint Data on Standard or Virtual Desktops(formerly Yahoo! Desktop Search)
- $ Examine32 Text Search(30 days trial)
- $ Openfind Enterprise Search 企業搜尋軟體 (30 days trial)
- Google 桌面搜索 archive of old version: Download Google Desktop 5.9.1005.12335 - FileHippo.com. Not available to download from official website
- Zotero v.3 for Firefox
- 搜尋: 儲存在Zotero資料庫的文獻書目、標籤、附檔檔名、附檔(PDF或HTML網頁檔)內文[1]
cloud services
- Search for your files - Drive Help "You can search the first 100 pages of any text documents or text-based PDFs that you've uploaded. You can also search for text found on the first 10 pages of any image PDFs."
- How-To Do a Full Text Search within your Gmail Attachments?
- $ How can I use full-text search to search the contents of my files? (Dropbox Help Center)
Search text in plain text files
by solution
- Windows Grep: Grep for Windows v.2.3 Win
- big file search: ok e.g. file size (1) > 90 MB: ok; (2) > 200MB: ok {Gd}}
- Regular expression: supported
- refine the search:
- Sublime Text v.2
- EmEditor $
- big file search: ok
- Regular expression: supported
- refine the search:
- grepWin v1.5.6.x
- big file search: file size (1) > 90 MB: ok; (2) > 200MB: ok;
- Regular expression: supported
- refine the search:
- comment: If there are too many matches, the software will be frozen and get back after some minutes.
- Notepad++ v5.9.8[5]
- big file search: file size (1) > 90 MB: ok; (2) > 200MB: not ok (file is too big to be opened by Notepad++)
- Regular expression: supported
- refine the search: file name, file type (separated by ; symbol, ex: *.html; *.htm to search the text in the html and htm file types) , folder
- Grep for Windows Win CLI
- big file search:
- Regular expression:
- refine the search:
- Grep command for Linux [7]
template (left blank intentionally)
* software name ** big file search: ** Regular expression: ** refine the search:
by logical operators
OR: match the lines which contains pattern1 OR pattern2[10][11]
- awk '/pattern1|pattern2/' file_name for Linux
- grep 'pattern1\|pattern2' file_name
- grep -E 'pattern1|pattern2' file_name
- cat file_name | grep -E 'pattern1|pattern2'
AND: match the lines which contains pattern1 AND pattern2
- awk '/pattern1/&&/pattern2/' file_name for Linux
- grep -E 'pattern1.*pattern2|pattern2.*pattern1' file_name order dependent
- cat file_name | grep -E 'pattern1.*pattern2|pattern2.*pattern1' order dependent
Search text in single plain text file
Search text in a file
- grep command:
- case insensitive[12]: Using grep -i keyword /path/to/file (Linux ) or enclose it in double quotes if the keywords contains spaces grep -i "keywords contains space" /path/to/file
- case sensitive: grep keyword /path/to/file (Linux )
- vim: (1)vim [options] filename (2)press /keyword (Linux )
- cat & grep: cat /path/to/file | grep keyword: keyword is case sensitive (Linux )[13]
other issues
- big file search:
- Regular expression: supported
- refine the search:
Search text in a compressed text file
- zcat & grep: cat /path/to/compressed_text.gz | grep keyword (Linux )[14]
file name or folder name search
搜尋範圍(1)資料夾名稱 與 (2)檔案名稱
Everything Search Engine(official wiki) version 3.1.4
- 搜尋: 支援輸入部分字串 ,輸入 studi* 可以找到 studio ,詳Searching。
- 媒體: 電腦本地磁碟(local NTFS volumes),不包含網路磁碟。https://www.planetoid.info/images/Icon_exclaim.gif不支援 FAT 格式。
- 可當server
- 縮小範圍: 可排除特定檔案類型或者特定目錄,不在索引範圍內。
- 教學: 如何讓 Everything 從遠端電腦搜尋下載本機檔案?並整合到 Firefox 搜尋列? | 電腦玩物, Everything - 最快的檔名搜尋工具 @ Nelson 不知不覺升上國二了
- 搜尋:
- 縮小範圍:
Listary - Free Search Utility | Windows Explorer Search | Text Editing
Total Commander v7.56a
- 搜尋:
- 縮小範圍: 可指定多個資料夾,路徑可用 ; 符號間隔
Where Is It? - "Catalog your media collection, use descriptions, thumbnails and categories, find files or disks you need"
- 搜尋:
- 縮小範圍:
- 其他: 無法將「網路磁碟」納入索引範圍
Wise JetSearch - Fast Local File Search Tool - Search Everything v.1.24.65 (Wise JetSearch 1.24 免安裝中文版 - 取代Windows內建搜尋功能 - 阿榮福利味)
- 搜尋: 支援輸入部分字串 ,輸入 * 或 ? 符號。例如: studi? 可以找到 studio。詳Wise JetSearch Online Help Center
- 媒體: 電腦本地磁碟,支援NTFS, FAT 格式。
- 縮小範圍: 無法排除特定檔案類型或者特定目錄,在索引範圍內。
Finder for Mac
- 搜尋: (1)可輸入部分字串,例如輸入 appl 可以找到 apple。 (2)不支援輸入 wildcard (*)
- 縮小範圍: 可預先設定排除特定目錄
軟體名稱 (left blank intentionally)
- 搜尋: (1)是否支援輸入部分字串 (2)是否支援輸入 wildcard
- 縮小範圍:
quick file search filter under a folder: file name or folder name
- Press Ctrl + s to use the Quicksearch filter at Total Commander
quick file search filter: file name only
- Press Alt + Space to search and launch the file Launchy: The Open Source Keystroke Launcher. Require index the files first. [Last visited: 2012-02-07]
Search text in files (cloud solution)
full text searching
- Google drive: Search your Google Drive - Drive Help text-PDF was tested: 2013-01-06
- $ Evernote: Search Better with Evernote Premium: Document Search
- Dropbox: How can I use full-text search to search the contents of my files? (Dropbox Help Center)
file name or folder name searching only
references
- ↑ pdf_fulltext_indexing (Zotero Documentation)(screencast_tutorials:advanced_search )
- ↑ Search and Replace — Sublime Text Unofficial Documentation
- ↑ Perl Regular Expression Syntax - 1.47.0
- ↑ Sublime Forum • View topic - Find in Files of Filetype
- ↑ Searching in Files
- ↑ 如何編寫批次檔讓我可以抓取TXT檔中的某個字串 - iT 邦幫忙::一起幫忙解決難題,拯救 IT 人的一天
- ↑ Finding a File containing a particular text string in Linux server
- ↑ options (1) -i, which means ignore case (2) -r means search recursively through an entire directory tree including the sub directory How to use the grep command, by The Linux Information Project (LINFO)
- ↑ HowTos/SELinux - CentOS Wiki / zh-tw/HowTos/SELinux - CentOS Wiki(in Chinese)
- ↑ logical operators in grep
- ↑ 7 Linux Grep OR, Grep AND, Grep NOT Operator Examples
- ↑ Using grep and Ignoring Case (Case Insensitive grep)
- ↑ Using Grep & Regular Expressions to Search for Text Patterns in Linux | DigitalOcean
- ↑ Unix / Linux: cat .GZ Compressed Text File On Screen