In manual of sed, the page show the methods to select specific lines but in a range.
How can I select spcific lines which have no rules?
seq 10
For example, how can I change line 1, 3, 7 to 11?
I tried use seq 10 | sed '1s/[0-9]/10/;3s/[0-9]/10/;7s/[0-9]/10/', but this looks complex and unclear.
Is there a way to do this easier?