 |
Check if a file exists with wildcard in shell script - Stack Overflow
I'm trying to check if a file exists, but with a wildcard. Here is my example: if [ -f "xorg-x11-fonts*" ]; then printf "BLAH" fi I have also tried it without the double quotes. ... If your shell has a nullglob option and it's turned on, a wildcard patter
stackoverflow.com |
 |