ls -ld /path/to/dir in a script you could ls -ld /path/to/dir | awk '{print 3}' there are probably lots of other ways as well John On Wed, 19 Jul 2006, Tech Rams wrote:
hi I am looking for a way to know the owner of a directory/file. There is the obvious way of parsing the output of ls, but did not find much beyond that. Is there a better way (that works inside of a shell script)? thanks, Rams --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list