summaryrefslogtreecommitdiff
path: root/util/catdir.sh
blob: cd4ed12e3bb30dffea0fba8feac9918d632afe9e (plain)
1
2
3
4
5
6
#!/bin/bash
[ -d "$1" ] || exit 1
cd "$1"
shift
find -H "$@" -type l -printf '%p -> %l\n' -o -printf '%p (%U/%G/%#m)\n' | sort
find -H "$@" -type f -print0 | sort -z | xargs -0 cat