check file
From: Kenneth (kenneth_at_cde.com)
Date: 07/30/03
- Next message: Ben: "Re: check file"
- Previous message: joe_at_invalid.address: "Re: pls need some guidance"
- Next in thread: Ben: "Re: check file"
- Reply: Ben: "Re: check file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 30 Jul 2003 21:36:17 +0800
I want to check if there exist any filename with test in it by
if [[ -a test* ]]; then
echo "file exist"
else
echo "file not exist"
fi
But it always return not exist. How can I use wildcard in check the
existence of certain type of files? Thanks.
- Next message: Ben: "Re: check file"
- Previous message: joe_at_invalid.address: "Re: pls need some guidance"
- Next in thread: Ben: "Re: check file"
- Reply: Ben: "Re: check file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]