The UNIX and Linux Forums  

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 -->
  #3 (permalink)  
Old 10-03-2008
G.K.K G.K.K is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 32
Quote:
Originally Posted by Yogesh Sawant View Post
try replacing this:
Code:
size_dir=$(stat -c %s $1) #$1 has the directory name (e.g. /root/kamal)

with:
Code:
size_dir=$(/usr/bin/stat -c %s $1) #$1 has the directory name (e.g. /root/kamal)

if this doesn't work either, find where is the stat command present at your system and include its full path
hai ,
i dont want to use the stat command i want to replace it with other command can u suggest some other code for simillar o/p ....
thanks & regards
kamal