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 -

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

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -