Living in the Shell #14; sed (Text Stream Editor) (Part 1)
sed 🖊️
Edits streams by applying commonly used modifications.
Add a new line a & i
cat some-file.txt | sed '3a This is a new line after the 3rd line'
cat some-file.txt | sed '3i This is a new line before the 3rd line'
Append a new line to the end ...
babakks.hashnode.dev1 min read