How do I delete the last "enter" of the copied content?
You can use printf
to trim trailing newline:
printf %s "$PWD" | xclip -sel clip
Another option:
echo -n $(pwd) | xclip -sel clip
You can use printf
to trim trailing newline:
printf %s "$PWD" | xclip -sel clip
Another option:
echo -n $(pwd) | xclip -sel clip