Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools


linux:shell_commands:string_search

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux:shell_commands:string_search [2019/05/22 14:12]
tplecko
linux:shell_commands:string_search [2019/05/22 14:12] (current)
tplecko
Line 1: Line 1:
-====== Search for files with specific ​string ​in them ======+====== Search for files with specific ​text in them ======
 <code bash |Linux shell>​find /var/www -type f -exec grep -l '/​sync-clients/'​ {} \;</​code>​ <code bash |Linux shell>​find /var/www -type f -exec grep -l '/​sync-clients/'​ {} \;</​code>​
 This will output all files with the specified string. The path in example is /var/www, and string we search for is /​sync-clients/​ This will output all files with the specified string. The path in example is /var/www, and string we search for is /​sync-clients/​
linux/shell_commands/string_search.txt · Last modified: 2019/05/22 14:12 by tplecko