linux-utils/noos-noarch/home/bryanpedini/bin/cat-directory

5 lines
164 B
Bash
Executable File

#!/usr/bin/env bash
[[ "$#" -eq 1 ]] && BASEDIR="$1" || BASEDIR="$(pwd)"
find "$BASEDIR" -type f -exec echo -e "\e[32m$(basename -- {})\e[37m:" \; -exec cat {} \;