serhii.net

In the middle of the desert you can say anything you want

08 Feb 2021

Day 769

Updated xrealpath to not include newline

echo -n "string" makes echo not add a newline symbol at the end 1. So anything | xargs echo -n | removes that.

Final command is

xrealpath() {
    realpath "$1"
    realpath "$1" | xargs echo -n | xc
}

  1. linux - echo string | xclip -selection clipboard , copies the ‘string’ but also adds a new line to it. how to fix this? - Stack Overflow ↩︎

Nel mezzo del deserto posso dire tutto quello che voglio.