I was looking for a way to save in a variable, the monit version installed in my server
If I use the command monit -V
the result is very verbose, like this:
Instead I would like to only 5.6
So I write a small bash script with a Regular Expression to find and asve in a variable only that 5.6
.