采采流水

An Essay Concerning Human Understanding

Find in terminal

2019-09-09


Find files from terminal

[TOC]

Several Useful Commonds

目录搜索: - find - fd

文本搜索: - grep - rg

Find files

find

> find root_path -name '*.ext'
> find root_path -name '*pattern_1*'

fd

> fd 'file'

Find Word in Files

grep

> grep text file_name

rg(ripgrep)

> rg 'word'