[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Check if dir is empty



Christopher Pharo Glæserud, 

> > Yes, but I need a script to act if there are files in a directory.
> if [ -f directory/* ] ; then echo "Files" ; fi

Err... Which actually works, given that you have only one file. I suck.

-- 
regards,

Christopher Pharo Glæserud



Reply to: