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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -