How to remove newline from beginning of the string?

Good day!

The original string:
root@node298:# sed 's/\t/:/g' /tmp/list | cut-f6-d: | sort -u | grep QQ
QQ 7 96559


When you try to add something to the end of the string is replaced with the first character in the string. How to admit?
root@node298:# sed 's/\t/:/g' /tmp/list | cut-f6-d: | sort -u | sed 's/$/1/'
1Q 7 96559


In the beginning normally is added.
root@node298:# sed 's/\t/:/g' /tmp/list | cut-f6-d: | sort -u | sed 's/^/1/'
1QQ 7 96559
September 19th 19 at 12:50
1 answer
September 19th 19 at 12:52
Solution
Happened:
sed 's/.$//'

Find more questions by tags bashsed