Answer the question
In order to leave comments, you need to log in
How to remove the end of line character from the beginning of a line?
Good afternoon!
Original line:
[email protected]:# sed 's/\t/:/g' /tmp/list | cut -f6 -d: | sort -u | grep QQ
QQ 7 96559
[email protected]:# sed 's/\t/:/g' /tmp/list | cut -f6 -d: | sort -u | sed 's/$/1/'
1Q 7 96559
[email protected]:# sed 's/\t/:/g' /tmp/list | cut -f6 -d: | sort -u | sed 's/^/1/'
1QQ 7 96559
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question