Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
If you are using Windows and the file is not very large, export it to Excel and sort and filter there.
Use regular expressions if you are familiar with them.
If you are interested in software implementation, then everything depends on the chosen programming language.
I advise you to use perl, although in any language like C ++ it will be a program in several lines
If you use powershell (it comes with new Windows starting with Vista, it is installed additionally on XP), then you can do this:
> cat .\file.txt | Select-String "172." > c:\output.txt
> cat .\file.txt | Select-String "10." >> c:\output.txt
Note that the second line uses a double ">" to indicate appending to the end of the file. A single character replaces the content, a double character appends to the end.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question