Skip to content

Instantly share code, notes, and snippets.

@peterszatmary
Last active August 17, 2020 12:44
Show Gist options
  • Save peterszatmary/7b59b0c0edbc69998297c975cb9c9293 to your computer and use it in GitHub Desktop.
Save peterszatmary/7b59b0c0edbc69998297c975cb9c9293 to your computer and use it in GitHub Desktop.
Delete every second line from input.file and produce new file output.file
sed -e n\;d <input.file > output.file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment