I am not familiar with UltraEdit scripts, but I would like to write a script that does the following.
1) Prompts the user for the number of lines to keep, say stored in a variable N.
2) Delete any blank lines first.
3) Starting from the top of the file, delete all but the last N records.
The reason for this is that I have a process that reads and processes records starting from the top of the file. The process stalls out sometimes, and I need to restart the process with the pending records only.
1) Prompts the user for the number of lines to keep, say stored in a variable N.
2) Delete any blank lines first.
3) Starting from the top of the file, delete all but the last N records.
The reason for this is that I have a process that reads and processes records starting from the top of the file. The process stalls out sometimes, and I need to restart the process with the pending records only.