<br>I need to find a way to a delete a series of files that have a matching general expression in each file. The matching expression would be **TOTAL 0.00**<br><br>This expression would always be the third line from the end of the file. The expression **TOTAL 0.00** would always be at the end of that line. <br><br>In the directory that these files are kept there are usually around 1,000 files that need to be searched. Once the expression is matched in a file I need to move the file to a new directory and or simply delete the file. <br><br>I think because of the pattern matching I am trying to do AWK would be a good place to start. At this point I am not familiar enough with AWK to put it all together.<br><br>Any thoughts or help would be appreciated.<br><br>Thanks<br><br>Danny<br><A HREF="mailto:dannyd@aboveboardelectronics.com">dannyd@aboveboardelectronics.com</A><br> <p>Danny Daniels<br><a href=mailto:dannyd@aboveboardelectronics.com>dannyd@aboveboardelectronics.com</a><br><a href= > </a><br>