Untitled

Anonymous
plain_text
11/02/2020 1:59 PM
240 B
16
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...