SLUG Mailing List Archives
[SLUG] if [[ -e *.TXT ]] ; then
- To: "Slug" <slug@xxxxxxxxxxx>
- Subject: [SLUG] if [[ -e *.TXT ]] ; then
- From: "Alister Waller" <alister@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon Jul 2 17:08:02 2001
just a quicky if someone could help.
how do I check that a file with a particular extension exists in a directory
in a shell script.
if [[ -e *.TXT ]] ; then
Using a wildcard does not appear to work.
thanks in advance
Alister Waller (B.Comp CQU)
Roadtech Systems Ltd
Phone: 02 98073516 Fax: 02 98085294