locate ... | less outputs a long path, which is shown as several lines in the terminal, although it is actually a single line.
I copy the path from the terminal by selecting the text with mouse and hitting Ctrl+Shift+C. When I paste it into a text file, I get unwanted change-line in the text, exactly in the same way that it is shown in the terminal.
But I remember sometimes I can copy a long path output by
locate ... | less, without introducing unwanted line-change, and sometimes I can't. I don't realize if I do something differently.
So I wonder how to make sure the problem will not happen? Thanks!
My OS: Ubuntu 12.04.
My terminal: Gnome Terminal 18.104.22.168