Basically I need to enter a character in a string of lines every n spaces such as
and with sed I can only enter it in the first place using the flag such asabc#efg#ijk#lmn#
Is there a way that sed can do it as I would like in the first example rather than just finding the first 4th character and nothing after that. Is there a way to apply the global flag along side with it?Code:sed 's/./#/4'