What about using "tree" ?

-- Bill Morita
512-569-6387 (Cell)

On Sat, Dec 12, 2015 at 1:47 AM, Steve Dum <[email protected]> wrote:

> John,
> Here is something that might get you what you want
> Say you want to list all directories under directory foo
>     find foo -type d
> this just print the names of the directories
> If you want something similar to what 'ls -l' would say,
> find foo -type d -ls
> The out of this is like the following
>
> 97914840    4 drwxr-xr-x   2 steved   steved       4096 Nov 30 23:45 foo
>
> with find you can't customize the output.
> ls allows you more choices about what to display but would be hard to
> just do directories.
> find foo -type d -exec ls -ld  {} \;
> would give you just the directories, using the ls long format.
>
> You could just pipe the output into lpr, or redirect output to a file
> and then print it.
>
> steve
>
> John Jason Jordan wrote:
> > I wish to print a list of directories (but not the files or
> > subdirectories contained in the directories) on Xubuntu 12.04 (up to
> > date). I normally use the GUI file manager Thunar, but it has no menu
> > item to print anything. There is, however, Edit > Configure custom
> > actions, which appears to require me to use xfprint with specific
> > options, but I haven't found much information about using xfprint.
> >
> > I suspect this might be easier from the command line, but I don't know
> > where to start looking for the right tool. That is, I have used lpr in
> > the past and I have a fair idea of what the available options are, but
> > lpr seems to be useful only for printing the contents of a file, not
> > for printing a list of folders.
> >
> > Suggestions?
> > _______________________________________________
> > PLUG mailing list
> > [email protected]
> > http://lists.pdxlinux.org/mailman/listinfo/plug
> >
>
> _______________________________________________
> PLUG mailing list
> [email protected]
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to