So I have a pattern like somepattern-abc-1.2.3-aji3mk3-11.tar. I need to add a condition where
if [ $input matches somepattern[].tar ] then do something fi here the somepattern will be a constant one, rest all till ".tar" will vary and can have a hyphen or a letter or a number. What can I replace my [] with so that it will be satisfied?
rest all till ".tar" will vary and can have a hyphen or a letter or a number.somepatternis..?