Editor: Vi & Tmux

Sed

1
22/open
2
25/open
3
80/open
4
110/open
5
119/open
6
4555/open
7
~
8
:%s/\/ope//g
Copied!
1
110n
2
119n
3
22n
4
25n
5
4555n
6
80n
7
~
8
:%s/n\n/,/g
Copied!
1
cat ports.lst
2
110,119,22,25,4555,80,
Copied!
Last modified 1yr ago
Copy link