From: Bjarni Juliusson on 15 Oct 2009 16:14 Stephane CHAZELAS wrote: > 2009-10-15, 10:34(+02), Bjarni Juliusson: >>> The first argument to find is a path not a file so you don't use the "/*" ie >>> >>> find $DIR_TO_CLEAN -prune etc. >>> >>> Not sure if that would be enough, >> >> Make that "-maxdepth 1" to never descend into any subdirectories. > [...] > > -maxdepth is a GNU extension (also recognised by some BSDs), it > won't work on Solaris. See the \( -name . -o -prune \) standard > equivalent (or ! -name . -prune for the standard equivalent of > -mindepth 1 -maxdepth 1). Oh dang, I assumed it was standard since it was in both GNU and BSD, thanks for clearing that up! Bjarni -- INFORMATION WANTS TO BE FREE
First
|
Prev
|
Pages: 1 2 3 Prev: weird environ Next: Xlib question - efficient way to get pixel value? |