we plan to count how many files belong to that group. For example HR or Finance.
--- 09/5/12 (二),Filipe Brandenburger filbranden@gmail.com 寫道:
寄件者: Filipe Brandenburger filbranden@gmail.com 主旨: Re: [CentOS] can non-owner change file group setup? 收件者: "CentOS mailing list" centos@centos.org 日期: 2009年5月12日,二,下午3:13 2009/5/12 mcclnx mcc mcclnx@yahoo.com.tw:
Does anyone know how "no-owner" can change file group
name?
I believe that is not possible.
What exactly are you trying to accomplish?
Filipe _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
______________________________________________________________________________________________________ 付費才容量無上限?Yahoo!奇摩電子信箱2.0免費給你,信件永遠不必刪! http://tw.mg0.mail.yahoo.com/dc/landing
mcclnx mcc wrote:
we plan to count how many files belong to that group. For example HR or Finance.
not sure why you need to change the file's group to do this.
for g in hr finance; do echo $(find . -type f -group $g |wc -l) files in group $g done