6

Loop while and until

view full story
linux-howto

http://www.unix.com – maybe you guys have a better way of doing this. i'm searching a file for a particular month. if the month is not found, i want the script to automatically look for the month before the month that wasn't found. so if i searched for jun and jun isn't found, i want the script to know to search back for may. if may is also not found, i want the script to go back one more month. i want this to continue until a month is found. here is a my script: SystemDateM contains the month. Code:       TOPOFFILE=$(               &n (HowTos)