Untitled

mail@pastecode.io avatar
unknown
plain_text
4 years ago
180 B
3
Indexable
Never
#!/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