I am aware that this will do what I want on all lines:sed 's/^\(.\{4\}\)/\1-/' textFileBut how would I enter a - after the 4th character slot on ONLY the 5th line? Or even better, on a range of lines, like from 5-7?
How would I use sed to insert a character at a certain character position on only ONE line?
sed