How to get sed to modify the nth line
Let's say I'm going to pipe a file to sed, and I want sed to prepend the nth line with a certain character. How would I do that?
|
Code:
sed '9s/.*/this is 9-th line: &/' |
All times are GMT -5. The time now is 03:45 PM. |