copy paste in bash without the colon
by ccee from LinuxQuestions.org on (#5NFKP)
Hello
Traditionally in bash if you wanted to copy/paste a word you would hover the mouse above the source word and double click to select that word. In newer (at least debian based) installs I have found that if that word is followed by a colon then the colon is also included in what has been selected.
For example:
cat /etc/passwd | grep nobody
nobody:x:65534:65534::/tmp:
if I hovered the mouse above "nobody" and double right click, "nobody" was selected ...
If I now do the same thing in 4.9.0-264-antix.1-amd64-smp (and several others) the whole line is selected...
How can I delimit what is selected by considering the colon as if it were a space like in the good old days?
Thanks
C
Traditionally in bash if you wanted to copy/paste a word you would hover the mouse above the source word and double click to select that word. In newer (at least debian based) installs I have found that if that word is followed by a colon then the colon is also included in what has been selected.
For example:
cat /etc/passwd | grep nobody
nobody:x:65534:65534::/tmp:
if I hovered the mouse above "nobody" and double right click, "nobody" was selected ...
If I now do the same thing in 4.9.0-264-antix.1-amd64-smp (and several others) the whole line is selected...
How can I delimit what is selected by considering the colon as if it were a space like in the good old days?
Thanks
C