> For the complete documentation index, see [llms.txt](https://gitbook.nori-zamurai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.nori-zamurai.com/useful-commands/editor-vi-and-tmux.md).

# Editor: Vi & Tmux

### Sed

```
22/open
25/open
80/open
110/open
119/open
4555/open
~                                                                               
:%s/\/ope//g
```

```
110n
119n
22n
25n
4555n
80n
~                                                                               
:%s/n\n/,/g
```

```
cat ports.lst 
110,119,22,25,4555,80,
```
