dave selby wrote: > Stuck on bash, I need to execute a while loop while there are >= 3 > items in a dir. I tried > > while [ ls "$1/tmp/" | wc -l -ge 3 ]; > > and I get ./kmotion_hkd.sh: line 33: [: missing `]' Try this (I haven't tested it though): while [ $(ls "$1/tmp/" | wc -l) -ge 3 ]; Nils