💾 Archived View for gemini.strahinja.org › dtree captured on 2023-09-28 at 15:32:45. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2023-11-04)

-=-=-=-=-=-=-

dtree

Command line program to draw trees

For installation instructions, see the file INSTALL.

INSTALL

Examples

Format a tree using double-stroke box drawing characters:

printf "A\n\tB\n\t\tC\n\tD\n" | dtree -sd

tree(1) replacement:

find . -print | sed -E "s,[^/]+/,$(printf '\t'),g" | dtree

same, using ASCII characters:

find . -print | sed -E "s,[^/]+/,$(printf '\t'),g" | dtree -sa

Prerequisites

Install

$ git clone https://git.sr.ht/~strahinja/dtree
$ cd dtree
$ su

If you have djb redo:

# redo install

if you don't:

# ./do install

Persistent build configuration file

The file config.redo will be sourced when building targets which also accept configuration through environment variables. For example, CC and PREFIX are specified in config.redo.

License

dtree - Command line program to draw trees

Copyright copy 2023 Страхиња Радић

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

https://www.gnu.org/licenses/

Generated by slw2gmi © 2021-2023 Strahinya Radich.

slw2gmi