1 Post

Sed

Insert text before a line into multiple files

Insert text before a line into multiple files

The stream editor sed inserts text before a specified pattern. sed -i '/pattern/i\inserted …