sed 轉 awk (replace某一行) - Linux

Table of Contents


cat 1.txt

1
2
3
3
5

sed '4c ok' 1.txt

1
2
3
ok
5

請問 如何用 awk 取代第四行呢 ?

--

All Comments