12 lines
174 B
Bash
12 lines
174 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
|
||
|
|
root="${1:-.}"
|
||
|
|
|
||
|
|
find "$root" -type f -print0 |
|
||
|
|
while IFS= read -r -d '' file; do
|
||
|
|
printf -- "---\n%s\n-\n" "$file"
|
||
|
|
cat -- "$file"
|
||
|
|
printf "\n"
|
||
|
|
done
|
||
|
|
|