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.

21 Answers
21

Leave a Reply

Your email address will not be published. Required fields are marked *