[TriLUG] Piping, redirection and shellscipts: 3/5/2025 7pm Eastern Standard time

John Vaughters via TriLUG trilug at trilug.org
Mon Mar 3 10:45:37 EST 2025


>echo "y" |$some_netbackup_command

I have run across this too. the "yes" command is what I use.

In general, I have considered my pipe usage to abusive and lazy, but effective. With grep, cut, tr, awk, sort and many of the basic root UNIX code. You can do simply ridiculously long commands and web scraping is one of the great usages. JSON and XML work too, but that was before I learned some better techniques, but still they are my go to, like a worn pair of shoes. I have used them in many of production scripts that work flawlessly for many years.

~John Vaughters



More information about the TriLUG mailing list