|
|
- #!/bin/env bash
-
- echo -e "\e[1mSearch inside files -- [case sensitive]\e[0m"
- echo -e "\nCurrent search folder: $PWD\n"
- read -r -p "Enter string to search: " STRING
-
- echo -e "\nFiles containing the string \e[93m$STRING\e[0m in \e[94m$PWD/\e[0m and subfolders are:\n\e[32m"
- grep -Rls $STRING $PWD
- echo -e "\e[91m\nSearch finished\e[0m"
|