home | list info | list archive | date index | thread index

looking for particular "tree"-like recursive directory display

  • Subject: looking for particular "tree"-like recursive directory display
  • From: "Robert P. J. Day" <rpjday [ at ] crashcourse [ dot ] ca>
  • Date: Sun, 23 Feb 2020 13:02:00 -0500 (EST)
  for the sake of some documentation and web pages i'm writing, i'd
like to generate "tree" like output for a directory structure, but
without the standard indentation vertical and horizontal lines,
replacing that with space indentation (ideally selectable).

  so instead of:

    bitbake/
    ├── AUTHORS
    ├── bin
    │   ├── bitbake
    │   ├── bitbake-diffsigs

i'd get:

    bitbake/
        AUTHORS
        bin/
            bitbake
            bitbake-diffsigs

and so on. in a perfect world, i'd have most of the "tree" options,
like adding the "ls -F" filetype character to the end of each name if
i want, but also being able to select the indentation quantum (in
terms of number of spaces).

  i'm poring over the "tree" options but don't see if i can get that
with regular "tree". thoughts? yes, i could hack up a filter, but it
would be just ducky if some standard command already did what i'm
after.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                         http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================