DEV Community

Query Filter
Query Filter

Posted on

tree nolimit

while IFS= read -r dir; do
printf '%s\n' "$dir"
find "$dir" -type f | sort
done < <(find . -type d | sort) | \
sed -e 's;[^/]*/;|_;g;s;_|; |;g'

Top comments (0)