5 lines
181 B
Bash
5 lines
181 B
Bash
|
#!/bin/sh
|
||
|
cat $1 | while read line
|
||
|
do awk '{ print "mkdir -p "$4" || exit 1; chmod "$1" "$4" || exit 1; chown "$2" "$4" || exit 1; chgrp "$3" "$4" || exit 1" }' | sh || exit 1
|
||
|
done
|