in reply to Parse the text file output and delete files
Keep track in a variable at all time of the last executing: @ ... dir1.sql encountered, and, when you meet an ERROR line, you know that you can delete the SQL file whose name is in the last-sql-file variable (if the file still exists).
No need to read backward.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parse the text file output and delete files
by Gaurav99 (Initiate) on Jul 20, 2015 at 16:59 UTC | |
by GotToBTru (Prior) on Jul 20, 2015 at 17:28 UTC | |
by Laurent_R (Canon) on Jul 21, 2015 at 14:56 UTC |