How can I append text at the end of the line in a text file?

I’ve found the solution for appending text at the end of line using SED as follow
sed -i -e ‘$aEndofline’ filename

But Now I’m looking to append multiple lines at the end of line which follows like this:
Endofline1
Endofline2
Endofline3
Endofline4
Endofline5
Endofline6

And yes they follow ascending order up to 443

for x in $(seq 0 443); do echo "Endofline${x}" >> filename; done
2 Likes

Thank you!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.