Differences
This shows you the differences between two versions of the page.
— | linux:shell_commands:string_search [2019/10/31 09:05] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Search for files with specific text in them ====== | ||
+ | <code bash |Linux shell> | ||
+ | This will output all files with the specified string. The path in example is /var/www, and string we search for is / | ||
+ | <code bash |Linux shell> | ||
+ | * -i > ignore caps | ||
+ | * -R > recursive | ||
+ | * -l > Display filename instead of text | ||
+ | * ' | ||
+ | * . > location to start in |