> [ $(ls -ld $1 | awk '{print $2}') -gt 1 ] or, avoiding the second fork/exec (but killing the positional arguments): set -- $(ls -nld $1) [ $2 -gt 1 ] David -- David Laight: david@l8s.co.uk