How to copy line without trailing whitespaces in terminal?
When a line in Terminal contains whitespace there is no method, that I know of, which involves just clicking to highlight the line sans the newline character.


You can single-click at the start of the line (or any inception point) you want to copy then press and hold the shift key and single-click the last word, or character, of the line you want copied. This will then not include the newline character when you press commandC to copy it to the Clipboard.
You can also double-click the first word, which highlights it, and then press and hold the shift key and single-click the last word, or character, of the line you want copied. This will then not include the newline character when you press commandC to copy it to the Clipboard.
Or you can single-click and hold at the start of the line (or any inception point) you want to copy while dragging the cursor to the last character in the line you want to copy. This will then not include the newline character when you press commandC to copy it to the Clipboard. Obviously this last one is probably not exactly what you're looking for but was included for completeness.