Hacker News new | ask | show | jobs
by Cyykratahk 161 days ago
An alternative to the paste commands is vipe (vi + pipe?) from moreutils which opens an $EDITOR that returns the contents once saved and closed.

It helps with pasting special chars, newlines, and remote sessions without access to the local clipboard.

    secret=$(vipe)
    echo "$secret"
https://manpages.debian.org/jessie/moreutils/vipe.1