Untitled

 avatar
unknown
plain_text
4 years ago
180 B
5
Indexable
#!/bin/sh
echo -n "Enter a string to find: "
read -r str
if grep -q "$str" "demo_string.txt"
then
echo "The string is available!"
else
echo "The string is not available!"
fi
exit 0
Editor is loading...