1

How to do this Script PLZ !!!!?

view story
linux-howto

http://www.unix.com – HI all , i want to make an automatic script using if / while to search for files in folder and get the least by date and gzip them ( last 70 file ) /file/home/logs 30 files in 11/2012 45 files in 10/2012 30 files in 9/2012 10 files in 8/2012 so it get 10 + 30 + 30 ( from 10 ) and gzip them what about my script Code:   for sourcefile in `ls -rt *.txt`         do               gzip $sourcefile if [ ` echo $sourcefile | wc -l ` -eq 1 ]         then             &nbsp (HowTos)