From 25d95835ee0da2e7144ec96b82b5ce7afb7243d3 Mon Sep 17 00:00:00 2001 From: Joshua Levy Date: Sun, 31 May 2015 14:46:32 -0700 Subject: [PATCH] Add ag and locate. --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 570f104..ba80e6c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ - [Basics](#basics) - [Everyday use](#everyday-use) -- [Data processing](#data-processing) +- [Processing files and data](#processing-files-and-data) - [System debugging](#system-debugging) - [One-liners](#one-liners) - [Obscure but useful](#obscure-but-useful) @@ -116,7 +116,11 @@ Scope: ``` -## Data processing +## Processing files and data + +- To locate a file by name in the current directory, `find -iname *something* .` (or similar). To find a file anywhere by name, use `locate something` (but bear in mind `updatedb` my not have indexed recently created files). + +- For general searching through source or data files (more advanced than `grep -r`), use [`ag`](https://github.com/ggreer/the_silver_searcher). - To convert HTML to text: `lynx -dump -stdin`