Sample Header Ad - 728x90

No new line when piping into xclip

2 votes
2 answers
1086 views
Is there something I can do so that whenever I pipe something into xclip it does not include a new line at the end? As a workaround, I am using echo -n $(CMD_TO_COPY) | xclip, but it's kind of annoying having to type all of this each time I want to copy something.
Asked by nicolasbk (43 rep)
Aug 8, 2022, 01:05 PM
Last activity: Aug 8, 2022, 03:48 PM