Aug 26, 2004 1 #2 screwloose MIS Apr 13, 2004 316 US for i in $(lsvg -l rootvg | tail +6l | awk '{print $7}') do find $i -type f | xargs ls | wc -l done Modify for your preferences, like totaling all filesystems, etc. Upvote 0 Downvote
for i in $(lsvg -l rootvg | tail +6l | awk '{print $7}') do find $i -type f | xargs ls | wc -l done Modify for your preferences, like totaling all filesystems, etc.
Aug 26, 2004 #3 screwloose MIS Apr 13, 2004 316 US #!/bin/ksh x=0 for i in $(lsvg -l rootvg | tail +6l | awk '{print $7}') do cnt=$(find $i -type f | xargs ls | wc -l | awk '{print $1}') ((x+=cnt)) done print $x This will total all files in all filesystems. Upvote 0 Downvote
#!/bin/ksh x=0 for i in $(lsvg -l rootvg | tail +6l | awk '{print $7}') do cnt=$(find $i -type f | xargs ls | wc -l | awk '{print $1}') ((x+=cnt)) done print $x This will total all files in all filesystems.
Sep 5, 2004 1 #4 lillracksingen Technical User May 9, 2004 33 BH Only files? Then maybe this short script. You need to be root to run it. [tt] #!/bin/ksh find $(lsvgfs rootvg) -xdev -type f | wc -l [/tt] Upvote 0 Downvote
Only files? Then maybe this short script. You need to be root to run it. [tt] #!/bin/ksh find $(lsvgfs rootvg) -xdev -type f | wc -l [/tt]
Sep 6, 2004 #5 ogniemi Technical User Nov 7, 2003 1,041 PL maybe you can also use ncheck command to count files in fs... Upvote 0 Downvote