1 2 3 4 5 6
#!/bin/sh while read -r mod user group path; do chown -c "$user:$group" -- "$path" chmod -c "$mod" -- "$path" done < "$1"