How do I index owner/group by path and apply them later?
===

My goal here is to run through the whole filesystem and grab the absolute path, file owner, file group and store it in a file for later use with a script to re-apply ownership on "known" files.

Note: Requires 'acl' package be installed.

Here's what I have so far:<br/>
`find / -exec ./fileog.sh {} \;`

Contents of ./fileog.sh:<br/>
`getfacl -R "$2" | awk 'NR==1, NR==3 {print $3}' | paste -s -d ',' >> ./ogindex.txt`

The problem is, I get the following error:<br/>
getfacl: : No such file or directory

but if I just do this, it works:<br/>
`find / -exec getfacl -R "$2" {} \;`

try this yourself :)<br/>
`getfacl -R ./some.file | awk 'NR==1, NR==3 {print $3}' | paste -s -d ','`


What am I missing?

Thanks for reading!