Skip to content

Instantly share code, notes, and snippets.

View Clicketyclick's full-sized avatar

Erik Bachmann Clicketyclick

View GitHub Profile
@takuzoo3868
takuzoo3868 / tree.sh
Last active July 4, 2024 10:05
Shell script that reproduced the tree command
#!/usr/bin/env bash
# treeを擬似的に再現したスクリプト
dir_count=0
file_count=0
traverse() {
dir_count=$(expr $dir_count + 1)
local directory=$1
local prefix=$2