The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-20-2008
aliahsan81 aliahsan81 is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 62
Need good solution

Hi all

I have a script that run fine ,Actually if find 777 directory and take its count and report,There is no problem with the script.But our reporting system have some limitation that dont allow more then 1000 directory to report,Now i want some way i can break this up and then report to the reporting system,My code is below,At the moment there are like 5000 777 directories.Please help i am blanked.


Code:

#!/bin/bash

check=/var/www/html


res=$(find $check -type d -perm 777 2>/dev/null )
count=$(find $check -type d -perm 777 | wc -l)

echo $count
#echo $res
                   
Reporting system command.