mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
16 lines
262 B
Awk
16 lines
262 B
Awk
|
#!/usr/bin/awk
|
||
|
/^[^#]/ {
|
||
|
gsub(/^\./,"", $1)
|
||
|
tags=$NF
|
||
|
gsub(/tags=/,"", tags)
|
||
|
output=tags".plist"
|
||
|
uname=$3
|
||
|
gname=$4
|
||
|
mode=$5
|
||
|
gsub(/uname=/, "", uname);
|
||
|
gsub(/gname=/, "", gname);
|
||
|
gsub(/mode=/, "", mode);
|
||
|
|
||
|
print "@("uname","gname","mode") " $1 > output
|
||
|
}
|