Shell Script to check filesize - Amount Of lines
Hi,
I want to write a simple shell script that will run through some folders and check for all files that is either bigger than a specified size or contains more than a certain amount of lines and then send me a email to let me know of those files.
The emailing,etc is fine,i'm just looking for the best way to traverse through the folder(maybe only look at certain files according to a timestamp),and check the size,amount of lines.
What's the best linux command to use for something like that?
Thanks
|