sed start line with word does not work

 

if u are confused when you are using “^start” as regular expression and your script does not return lines which start with word “start” you probably need to use option “-r”
so try this:

sed -r "/^start/ p" input.txt