4,461
edits
Finding or searching through files and folders |
|||
Line 20: | Line 20: | ||
$ find . | xargs grep -sioE ".{0,20}mystring.{0,20}" | more | $ find . | xargs grep -sioE ".{0,20}mystring.{0,20}" | more | ||
</syntaxhighlight> | </syntaxhighlight> | ||
An alternative way to search for keywords. | |||
<source lang="bash"> | |||
$ cat file.txt | grep word | |||
$ grep -r -e word /etc" | |||
</source> | |||
= Copy including hidden files = | = Copy including hidden files = |