Tag: search

Search Debian Package

Show all deb packages with the name “httpd” dpkg -l | grep httpd

Optimized Grep Searching

Grep that searches recursively, ignores binary files, and doesn’t look inside Subversion hidden folders. grep -Ir –exclude=”*\.svn*” “pattern” *

Find New Files

Search files created or changed within 10 days find /usr/bin -type f -mtime -10

Grep using Sed

View only lines that contain the word “string” sed -n ‘/string/p’

Seach for a String in a Folder using grep

Search string “test_text” at directory ‘/var/log’ and below grep test_text -R /var/log/*

Recursive Grep

Recursively check a folder to find the given text using grep grep -R “text” *

Search Text in a Folder using grep

Search for a specific text in a folder using grep grep “fetchFeedPacksCustomize()” *.js [tags]grep,search,text,folder[/tags]

Directory Listing Only Search

The search that limits the results to just directory listings… intitle:”index.of” inanchor:”Last Modified” inanchor:”Description” inanchor:”Parent Directory” -filetype:php -filetype:asp -filetype:htm -filetype:html…

Searching text in a directory using find and grep

Use find and grep to search for a specific text in a directory. In this example, we search for files…

Install Recoll

Recoll is a personal full text search tool for Unix/Linux. It is based on the very strong Xapian backend, for…