Nov-18-2021, 10:04 PM
Here's one that's pretty close.
#!/usr/bin/env bash # bash script to generate tree structure of a directory # Pravendra Singh : https://pravj.github.io pwd=$(pwd) find $pwd -print | sed -e "s;$pwd;\.;g;s;[^/]*\/;|__;g;s;__|; |;g"