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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -