summaryrefslogtreecommitdiff
path: root/util/catdir.sh
blob: 19dfd2461efdcc3d733fda09f37261da39ca20b5 (plain)
1
2
3
4
5
#!/bin/bash
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