-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove every n line #772
Comments
As an alternative you could do that in a "custom command", like maybe a python command (untested): python -c \
'import sys; sys.stdout.write("\n".join([l for l in sys.stdin.readlines() if l % 2]))' |
The same way as @codebrainz's suggestion, you can get this to work easily with sed -n '1~2p' Replace |
Yepp... As all of the options offered by the plugin there is some sed/awk/* way to do it ;) |
Imlements a new feature which allows to remove every n-th line. The user can enter the value of 'n' in a dialog. Implements geany#772.
Imlements a new feature which allows to remove every n-th line. The user can enter the value of 'n' in a dialog. Implements geany#772.
Imlements a new feature which allows to remove every n-th line. The user can enter the value of 'n' in a dialog. Implements geany#772.
It would be awesome, if the plugin offer a way to delete every n line. I've got regular cases were I need to delete just every second line and somehow I miss this feature. Example:
would become
The text was updated successfully, but these errors were encountered: