Shell Tree: Building A Shell Script for the Graphic Representation of a Directory Structure

This is a series of posts detailing different methods of printing out a graphical representation of a tree in using a bash shell script. It culminates in the building of a recursive shell script.

  1. Breaking down Dem Pilafian’s one line command to display a tree of a directory
  2. Breaking down Dem Pilafian’s script that uses the one line command
  3. Modifying the one line to show files, as well as directories
  4. Building a new recursive script that looks better and has more functionality
  5. Optimizing the code by removing the array and adding strings

Some Additional Important Posts

  1. Bash Arrays: Exploring and Experimenting with Bash Arrays
  2. How to make recursive function
  3. Understanding indirect expansion

Ahmed Amayem has written 90 articles

A Web Application Developer Entrepreneur.