I am trying to find if 18.04 is in File.
When I run this I get
/home/andy/bin/test.sh: test.sh: line 12: syntax error near unexpected token `fi'
/home/andy/bin/test.sh: test.sh: line 12: `fi'
#!/bin/bash
File="/home/andy/Downloads/linux_Version_Running.txt"
lsb_release -d -s > "$File"
if grep -q 18.04 "$File"; then
# SomeString was found
fi