shell - list of file owners in folder on linux -
i have folder many files. files have been created many different users. not know shell scripting.
i need list of username (only) of owners of files.
i may save output of ls -l , parse using perl python etc...
but how can using shell scripting?
a simple 1 is
ls -l /some/dir/some/where | awk '{print $3}' | sort | uniq
which gets unique , sorted list of owners.
Comments
Post a Comment