Home:ALL Converter>Directory tree structure in shell

Directory tree structure in shell

Ask Time:2014-03-24T07:27:37         Author:Neyon

Json Formatter

I want to print a directory tree structure using shell commands, can anyone help me with idea of how to do it? As I am a bit new.

PS: I can't use Sed and Octs

.
|-- Lorem
|-- Lorem
|-- Lorem
  |-- Lorem
  |-- Lorem
|-- Lorem
-- Lorem

Author:Neyon,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/22598519/directory-tree-structure-in-shell
yy