View Single Post

  #2 (permalink)  
Old 02-11-2008, 03:01 PM
agn agn is offline
Member
User
 
Join Date: Feb 2008
My distro: OpenBSD/FreeBSD/Debian/Fedora/RHEL
Posts: 69
Rep Power: 1
agn is on a distinguished road
Default

Code:
[ $(ls -1 | wc -l $dir) -gt 5 ] && echo "y" || echo "n"
That should give you a hint.
Reply With Quote