Skip to content

Instantly share code, notes, and snippets.

@yanivk1984
Created March 17, 2023 16:20
Show Gist options
  • Save yanivk1984/36020b1a67920047cf1c90914f2b07ba to your computer and use it in GitHub Desktop.
Save yanivk1984/36020b1a67920047cf1c90914f2b07ba to your computer and use it in GitHub Desktop.
# add string every 100 lines
sed '0~100 i <string_to_add>'
sed '<(INT)start_from_line>~<(INT)add_every_n_lines> i <string_to_add>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment