List directory size, bash script
#!/usr/bin/env bash # it searches in the current working directory function calculate_size # takes a path as input { du -mc “$1” | tail -1 | awk ‘{print $1}’ } function list_dirs { # find . -depth 1 -type d | while read -r line; do find . -maxdepth 1 -type d | while read […]
List directory size, bash script Read More »