[Github-comments] [geany/geany-plugins] Remove every n line (#772)

Colomban Wendling notifications at xxxxx
Mon Sep 10 16:06:06 UTC 2018


The same way as @codebrainz's suggestion, you can get this to work easily with `sed`:
```shell
sed -n '1~2p'
```
Replace `1` with the starting line, and `2` with the step you want -- here it does exactly what you asked for, print every second line starting at line 1, effectively giving every odd line.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/772#issuecomment-419967392
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180910/ef23df18/attachment.html>


More information about the Github-comments mailing list