File Sorting
Solved
Geniso
-
[Dal] Posted messages 6122 Registration date Status Contributor Last intervention -
[Dal] Posted messages 6122 Registration date Status Contributor Last intervention -
Hello,
I have a text file that has about 100,000 lines and I would like to sort all of this, so does anyone know of a program that can, for example, export to another text file all the lines that contain the word (TAB) for instance? Or delete all the lines that contain the word (BTC).
Kind regards
I have a text file that has about 100,000 lines and I would like to sort all of this, so does anyone know of a program that can, for example, export to another text file all the lines that contain the word (TAB) for instance? Or delete all the lines that contain the word (BTC).
Kind regards
2 answers
-
Hello Geniso,
With a more advanced text editor that supports regular expressions, this can be done easily.
For example, with Vim:
https://vim.fandom.com/wiki/Search_for_lines_not_containing_pattern_and_other_helpful_searches#Using_the_:v_command#Using_the_:v_command
https://vim.fandom.com/wiki/Delete_all_lines_containing_a_pattern
https://vim.fandom.com/wiki/Tutorial
https://scotch.io/tutorials/getting-started-with-vim-an-interactive-guide
On Windows, with Notepad++, you can also do this, in a more convoluted way, if you don't want to dive into learning Vim:
https://stackoverflow.com/questions/5876296/regex-remove-lines-containing-help-etc
https://superuser.com/questions/290247/delete-all-lines-in-notepad-except-lines-containing-a-word-i-need
Dal-
-
I am very surprised that "Remove Bookmarked lines" deletes anything other than bookmarked lines.
Are you doing it as indicated here: https://stackoverflow.com/questions/5876296/regex-remove-lines-containing-help-etc#5899441 -
-
-
-
Good evening,
I am not familiar with any software that does this, but most word processors allow you to search for a word, and even replace it, which could already make your task a bit easier (Ctrl+F to search and Ctrl+H to search and replace, I believe).