Quantcast
Channel: Michael Paquier » linux
Viewing all articles
Browse latest Browse all 12

Search a string in selected files

$
0
0
Here is a short script/memo to find strings inside given file. The script is assumed to be called strfind. It is written in bash. Here is the spec of this script. michael@boheme:~/bin $ strfind ? Usage: strfind [-i] [filename] [string] Exemple: strfind "[hc]" text You can then find strings with commands like: strfind *.c $TEXT_SEARCH [...]

Viewing all articles
Browse latest Browse all 12

Trending Articles