Here is my code:if [ -f /Applications/xml[0-9].pl ]I also tried with -f =~ and double brackets but none seem to work.I first though that the regex might be faulty but I tried this.echo h1 | sed 's/h[0-9]/h/'And that worked. What am I doing wrong here?
Why doesn't my regex work in bash if?
bash;files;regular expression