Reputation: 1726
Input
aaaa
bbbb
cccc
Output
aaaa
< _jupijuice_ >
bbbb
< _jupijuice_ >
cccc
< _jupijuice_ >
In simple words, replace \n with \n< jupijuice >\n
Upvotes: 0
Views: 216
Reputation: 34290
In regular expressions you can use $
to match end of line:
sed 's/$/\n< _jupijuice_ >/' input.txt
Upvotes: 4
Reputation: 10039
sed 'a\
< _jupijuice_ >' YourFile
append a line <...>
after each line
Upvotes: 3
Reputation: 7844
awk '{print; print "< _jupijuice_ >"}' input.txt
Output:
aaaa
< _jupijuice_ >
bbbb
< _jupijuice_ >
cccc
< _jupijuice_ >
Upvotes: 5