I want to insert a string after every 30 lines in my large file. I\'m using mini-sed, which doesn\'t support ~ (tilde) range operator. I\'m looking for sed-only solution please.
Use
sed '1~30 i everyThirtyLine' file.dat
This is tested in Cygwin.