Quantcast
Channel: Can the Bash shell "Ignore" Excess copy-paste text? - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 4

Answer by Jeff Schaller for Can the Bash shell "Ignore" Excess copy-paste text?

$
0
0

This is not an answer, but maybe it's an acceptable work-around:

alias p='perl; echo hit control-d again; cat > /dev/null'

Then, if your perl script exits prematurely, you'll harmlessly paste the remainder to /dev/null; if the perl script succeeds, you'll see your friendly reminder and hit control-d to exit the cat catcher.


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>