title: How to remove newline character when copying to clipboard
body: <p>I'm using alot <code>readlink</code> command, and what I'm trying to do is to create a short cut for this. I've added this to <code>~/.bashrc</code></p>
  
  <pre><code>rl() { readlink -f "$1" | xclip -i -selection clipboard; }
  </code></pre>
  
  <p>But when I want to paste it by pressing <code>ctrl+v</code> , terminal is trying to execute a command. Which is not what I want, I suspect it because there is a newline character at the end. </p>
  
  <p>So the question is how to make this command copy to the clipboard and make the cursor stay at the the same line when pasting it?</p>