I have a file which each line that ends with Mar 15, 2013
and other dates so I need to remove the end of each line say the last 13 characters
Each line is a different length and has different characters so cant use anything as delimiters.
But just use the find and replace. Look for ":\n" and replace with "\n" or something like that. You may need to mess with the find and replace options.
Assuming the numbers column is a constant width, you can simply hold down the ALT key while dragging a rectangle over the area you want to delete. Once it's highlighted, just press either the delete key or the backspace key.
You can use a regular expression in the search and replace
-dialog (Ctrl
+H
) that is anchored to the end of the line:
.{13}$
Then replace it with nothing. And of course you could use a more expressive regex to match only dates in your particular format and nothing else.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With