各行の最初の "Hello" のみ "Hi" に置換されます。
-i
-n
-e
s/パターン/置換/
s/パターン/置換/g
5
1,10
/pattern/
$
s///
d
p
a\テキスト
i\テキスト