Miscellany
public text v1 · immutableelif [ "$option" = "drill" ] ; then
set -vx
echo ' what is the broadest pattern to be searched?'
read patte
#grep -i $patte database.db > temp_grep.txt
echo 'what is the next pattern?'
read patte
while ! [ -z $patte ] ; do
grep -i $patte temp_grep.txt > temp_grep1.txt
echo 'what is the next pattern?'
read patte
cat temp_grep1.txt > temp_grep.txt
done
cat temp_grep1.txt | less