as all know we can check easily if folder exists by the following bash command
[[ -d /opt/presto-server ]] && echo folder exist
but when we have folder as
/opt/presto-server-32.34
then how to use regular expression in order to validate that folder is exists
with this rule
presto-server-<any charecter>
as
presto-server-454.545
presto-server-4a-434
presto-server-aa-434-l
etc
presto-server
and the remainder? – Jeff Schaller Apr 03 '19 at 14:53