#!/bin/bash
isString=false
cat CHANGELOG.md | while read line
do
if [[ $line == *"## [1.0.3]"* ]]; then
isString=true
break
fi
done
echo $isString
#!/bin/bash
isString=false
while read line
do
if [[ $line == *"## [1.0.3]"* ]]; then
isString=true
break
fi
done<CHANGELOG.md
echo $isString
grep '## \[1\.0\.3\]' CHANGELOG.md