Check if a file exists with wildcard in shell script - Stack Overflow

Check if a file exists with wildcard in shell script - Stack Overflow

瀏覽:552
日期:2024-10-08
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...看更多