Thread
:
In a shell script.. how do I test if any *.php exist?
View Single Post
03-29-2009, 08:38 AM
Pixelbucks Eric
Confirmed User
Join Date: Nov 2008
Posts: 496
if [ -f *.php ]; then echo "PHP files present"; fi
Mind you, the spaces need to be there.
Also, you could do:
if [ ! -f *.php ]; then echo "no PHP files present"; fi
__________________
New Program!
http://www.pixelbucks.com
| ICQ: 369055569
Pixelbucks Eric
View Public Profile
Visit Pixelbucks Eric's homepage!
Find More Posts by Pixelbucks Eric