Desktop search

From LemonWiki共筆
Jump to: navigation, search

Ψ 個人知識管理的搜尋任務類型: 電腦檔案或內文搜尋 | 多個PDF檔案的內文搜尋 | 自訂搜尋服務(網頁歸檔) | Gmail搜尋 Ψ


List of desktop search software

full text and filename search[edit]

電腦的多個檔案的內文搜尋

  • Ava Find
    • range: drive only, could not specific folder Icon exclaim.gif

cloud services


Search text in multiple plain text files[edit]

by solution[edit]

  • Good! Sublime Text v.2
    • big file search:
    • Regular expression: supported[2][3]
    • 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。 Menu -> Find -> Find in files -> Where: Add include filters[4]
  • 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. Icon exclaim.gif
  • Notepad++ v5.9.8[5]
    • big file search: file size (1) > 90 MB: ok; (2) > 200MB: not ok Icon exclaim.gif (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 Os windows.png CLI
    • big file search:
    • Regular expression:
    • refine the search:
  • Findstr command Win Os windows.png
    • big file search:
    • Regular expression:
    • refine the search:
    • instruction:[6]
  • Grep command for Linux Os linux.png [7][8]
    • multiple files: grep -ir "string to search" /path/to/directory[9]
    • single file: grep "string to search" /path/to/file ex: keyin grep avc /var/log/messages to find the SELinux log messages[10]

template (left blank intentionally)

* software name
** big file search:
** Regular expression:
** refine the search:

by logical operators[edit]

OR: match the lines which contains pattern1 OR pattern2[11][12]

  • awk '/pattern1|pattern2/' file_name for Linux Os linux.png
  • 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 Os linux.png
  • grep -E 'pattern1.*pattern2|pattern2.*pattern1' file_name Icon exclaim.gif order dependent
  • cat file_name | grep -E 'pattern1.*pattern2|pattern2.*pattern1' Icon exclaim.gif order dependent

Search text in single plain text file[edit]

Search text in a file

  • grep command:
    • case insensitive[13]: Using grep -i keyword /path/to/file (Linux Os linux.png ) 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 Os linux.png )
  • vim: (1)vim [options] filename (2)press /keyword (Linux Os linux.png )
  • cat & grep: cat /path/to/file | grep keyword: keyword is case sensitive (Linux Os linux.png )[14]
    • case insensitive: Using cat /path/to/file | grep -i keyword (Linux Os linux.png ) or enclose it in double quotes if the keywords contains spaces cat /path/to/file | grep -i "keywords contains space"
    • case sensitive: cat /path/to/file | grep keyword (Linux Os linux.png )

other issues

  • big file search:
  • Regular expression: supported
  • refine the search:

Search text in multiple compressed files[edit]

  • Switch to the folder & keyin the command find . -name "error*.gz" | xargs zcat | grep "pattern" to search the error*.gz files contains specified pattern [15]

Search text in a compressed text file[edit]

  • zcat & grep: cat /path/to/compressed_text.gz | grep keyword (Linux Os linux.png )[16]

file name or folder name search[edit]

搜尋範圍(1)資料夾名稱 與 (2)檔案名稱


Good! Everything Search Engine(official wiki) version 3.1.4


Locate32

  • 搜尋:
  • 縮小範圍:

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內建搜尋功能 - 阿榮福利味)

  • 搜尋: 支援輸入部分字串 Good! ,輸入 * 或 ? 符號。例如: studi? 可以找到 studio。詳Wise JetSearch Online Help Center
  • 媒體: 電腦本地磁碟,支援NTFS, FAT 格式。
  • 縮小範圍: 無法排除特定檔案類型或者特定目錄,在索引範圍內。

Finder for Mac Os mac.png

  • 搜尋: (1)可輸入部分字串,例如輸入 appl 可以找到 apple。 (2)不支援輸入 wildcard (*)
  • 縮小範圍: 可預先設定排除特定目錄

軟體名稱 (left blank intentionally)

  • 搜尋: (1)是否支援輸入部分字串 (2)是否支援輸入 wildcard
  • 縮小範圍:

quick file search filter under a folder: file name or folder name

quick file search filter: file name only

Search text in files (cloud solution)[edit]

full text searching

file name or folder name searching only

references[edit]

  1. pdf_fulltext_indexing (Zotero Documentation)(screencast_tutorials:advanced_search )
  2. Search and Replace — Sublime Text Unofficial Documentation
  3. Perl Regular Expression Syntax - 1.47.0
  4. Sublime Forum • View topic - Find in Files of Filetype
  5. Searching in Files
  6. 如何編寫批次檔讓我可以抓取TXT檔中的某個字串 - iT 邦幫忙::一起幫忙解決難題,拯救 IT 人的一天
  7. Finding a File containing a particular text string in Linux server
  8. Linux and Unix grep command help and examples
  9. 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)
  10. HowTos/SELinux - CentOS Wiki / zh-tw/HowTos/SELinux - CentOS Wiki(in Chinese)
  11. logical operators in grep
  12. 7 Linux Grep OR, Grep AND, Grep NOT Operator Examples
  13. Using grep and Ignoring Case (Case Insensitive grep)
  14. Using Grep & Regular Expressions to Search for Text Patterns in Linux | DigitalOcean
  15. linux - find string inside a gzipped file in a folder - Stack Overflow
  16. Unix / Linux: cat .GZ Compressed Text File On Screen

further reading[edit]