mirror of
https://github.com/xmengnet/the-art-of-command-line.git
synced 2024-12-24 04:06:28 +08:00
Add ag and locate.
This commit is contained in:
parent
3a11ae7f33
commit
25d95835ee
1 changed files with 6 additions and 2 deletions
|
@ -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`
|
||||
|
||||
|
|
Loading…
Reference in a new issue