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