Created
March 17, 2023 16:20
-
-
Save yanivk1984/36020b1a67920047cf1c90914f2b07ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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