6

Shell script to find a file size

view full story
linux-howto

http://www.linuxquestions.org – Hi there, am new to linux and shell script,am trying to write a shell script to find the size of a particular log file and if the log size grows, script should mail the changes to the administrator or a any user so script should monitor the log file continuously in a time interval, how can i do that? I tried with these codes to find the file size but it throws me error says command not found $s=$( stat -c %s mylogfile.log) echo $s (HowTos)