Filtering lines in a text file

0 like 0 dislike
10 views
There's a text file with lines of the form IP:Port
How to filter out, leaving only the lines starting with 10.* 172.*?
by | 10 views

7 Answers

0 like 0 dislike
Write on icq: 559343705 will write for you for thank you
by
0 like 0 dislike
grep "^10." ip.txt?
by
0 like 0 dislike
If you are using Windows and the file is not very big, export it to Excel and there are already sort and filter.
by
0 like 0 dislike
Use regular expressions if you are familiar with them.
If you are interested in a software implementation, it all depends on your programming language.
by
0 like 0 dislike
grep (or findstr under Windows)
by
0 like 0 dislike
Suggest to use perl, though, and in any language like C++ it would be a few lines
by
0 like 0 dislike
cat + grep?
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
5 answers
0 like 0 dislike
5 answers
asked Mar 23, 2019 by sapper
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
0 comments
32,806 users