The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
to parse a directory and its subdirectories and find owner name of files
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
to parse a directory and its subdirectories and find owner name of files
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
05-27-2009
amitranjansahu
Registered User
Join Date: Jan 2009
Location: Gurgaon,INDIA
Posts: 239
Here is the code it will print the files that is not owned by root
==============
find $PATH -type f -exec ls -l "{}" ";" |
awk -F" " '{print $3 ,$9}' |
awk ' $1 !~ /root/'
amitranjansahu
View Public Profile
Find all posts by amitranjansahu
Find amitranjansahu's past nominations received
Find amitranjansahu's present nominations given