View Single Post
Old 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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote