NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: geting some file stat



> Thanks all for your help,

> indeed 
> stat -f "%Mp%Lp:%u:%g:%N"
> does the trick

> On Tue, Feb 19, 2008 at 02:26:10PM -0600, Robby Griffin wrote:
 >> Don't forget you can stat multiple files, too:
 >>
 >> stat -f "%N %u %g %Mp%Lp" filename1 filename2 ...

> but I have a *large* number of files.. and would expect a shell error
> using them all on one line...

cat file_list.txt | xargs stat -f "%N %u %g %Mp%Lp"

-- 
Best regards, Aleksey Cheusov.


Home | Main Index | Thread Index | Old Index