## THIS IS A GREAT RETRO ENGINEERING AND CODING TOOLS

This commit is contained in:
qo-op 2021-06-17 22:55:59 +02:00
parent bbf8c3a14b
commit 4ab8b91342
1 changed files with 16 additions and 0 deletions

16
search Normal file
View File

@ -0,0 +1,16 @@
#!/bin/bash
clear
echo "------------------------------------------------------------------------------"
if [ "$1" == "" ]; then
echo " Nothing to search for!"
else
echo " Searching for "$1" recursively. Please Wait..."
echo "------------------------------------------------------------------------------"
grep -h -r --exclude=B00 -H --colour=always "$1" ./
fi
echo "------------------------------------------------------------------------------"
if [ "$2" != "" ]; then
echo " To replace \"$1\" whith \"$2\", please run"
echo " grep -rl '$1' ./ | xargs sed -i 's/$1/$2/g'"
fi
## THIS IS A GREAT RETRO ENGINEERING AND CODING TOOLS