====== SED - Change - Change string on a range of lines ====== sed '1,3 s/unix/linux/' filename or sed '2,$ s/unix/linux/' filename **NOTE:** **$** indicates the last line in the file. So the sed command replaces the text from second line to last line in the file.