|
From: | Paul Meyers |
Subject: | meta char in [ -f xxxx ] test |
Date: | Fri, 22 Jun 2001 11:09:59 -0400 |
Is there a way to get wild character support in the
file-exist test _expression_, I was able to do this in SCO's sh shell, but bash on
linux doesnt seem to support it.
For example:
if [ -f mystuff*.zip ]
then
echo "mystuff files exist"
fi
Paul Meyers
Systems Administrator Community Computer Service 15 Hulbert St. Auburn, NY 13021 Ph (315) 255-0900 Fx (315) 255-0416 |
[Prev in Thread] | Current Thread | [Next in Thread] |