Here is what I would like to accomplish, say I have the following file:
[Tue Feb 17 07:58:01 2009] : CHECK true
[Tue Feb 17 07:58:02 2009] : This line contains useful info...
[Tue Feb 17 07:58:03 2009] : COUNT 77
[Tue Feb 17 07:58:04 2009] : LOOP
[Tue Feb 17 07:58:05 2009] : This line contains useful info...
[Tue Feb 17 07:58:06 2009]
[Tue Feb 17 07:58:06 2009] : COUNT 76
I would like to remove all lines that contain 'COUNT' and 'CHECK' and 'LOOP'. Is this possible in notepad++? The file in question has more than 2000 lines, so it would take a bit of time doing it manually.
Also, any way of deleting line 6 which does not really contain any data? I suppose the length of the line would be the criteria, sort of if length is less than 26 then delete the file. Not the most robust algorithm. Open for suggestions.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the Find dialog, check "Mark line", then click "Find All". Then choose "Delete bookmarked lines" from the Search menu.
As to your second question, a regEx search for something like \]$ might do the trick.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Here is what I would like to accomplish, say I have the following file:
[Tue Feb 17 07:58:01 2009] : CHECK true
[Tue Feb 17 07:58:02 2009] : This line contains useful info...
[Tue Feb 17 07:58:03 2009] : COUNT 77
[Tue Feb 17 07:58:04 2009] : LOOP
[Tue Feb 17 07:58:05 2009] : This line contains useful info...
[Tue Feb 17 07:58:06 2009]
[Tue Feb 17 07:58:06 2009] : COUNT 76
I would like to remove all lines that contain 'COUNT' and 'CHECK' and 'LOOP'. Is this possible in notepad++? The file in question has more than 2000 lines, so it would take a bit of time doing it manually.
Also, any way of deleting line 6 which does not really contain any data? I suppose the length of the line would be the criteria, sort of if length is less than 26 then delete the file. Not the most robust algorithm. Open for suggestions.
Thanks :)
In the Find dialog, check "Mark line", then click "Find All". Then choose "Delete bookmarked lines" from the Search menu.
As to your second question, a regEx search for something like \]$ might do the trick.