On Tue, 2004-03-30 at 12:53, Casey T. Deccio wrote:
> On Tue, 2004-03-30 at 12:06, Bryan Murdock wrote:
> > On Tue, 2004-03-30 at 10:00, Soren Harward wrote:
> > > find . -type d
> > 
> > Um, yeah, duh.  I tend to make things harder than they have to be.
> > 
> > So now that I have that working, I care about the formatting a bit. 
> > That lists one directory per line, and it's kinda long.  Is there a way
> > to have it wrap in columns nicely like ls would do?  I can do something
> > like echo `find . -type d` but that doesn't quite do it right...
> > 
> 
> find . -type d -printf "%f\t"
> 
> For more formatting options (full filename, modified date, size, etc.)
> in the printf option, see `man find` and search for "-printf".

Well I didn't know find could do that.  Is there an 0'Reilly book on
find?

Hmm, somewhat better, but it doesn't wrap well.  -printf doesn't work
with the HP-UX find at all unfortunately.  The "ls -d */" suggestion
from Chris might do it for me though.  

Thanks!

Bryan


____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to