I'm trying to grep a html file.
Search text:
Ready to be merged automatically
</h4>
grep -A1 "Ready to be merged automatically"
prints two lines but how can i use it in a if statement?
if " Ready to be merged automatically
</h4>"
found do something.
Html file could have multiple entries of </h4>
and Ready to be merged automatically
, but it only has one entry together.