Advanced Bash tutorial
Matthew Gillen
me at mattgillen.net
Fri Feb 2 11:40:00 EST 2007
Jerry Feldman wrote:
> On Fri, 2 Feb 2007 07:53:03 -0500
> "James Kramer" <kramerjm at gmail.com> wrote:
>
>> Unix/Linux is incredible. I am always amazed at how fast and easy it is to
>> develop sophisticated software simply by piping different programs together
>> using simple Bash commands.
> Unix commands were designed to be a toolbox. A number of simple
> command, each taking input from stdin and sending output to stdout. It
> is this simplicity and the pipe concept that makes Unix/Linux so
> powerful.
And it really gets fun when you start writing your own apps in such a way that
they fit in those pipelines :-)
My latest favorite thing is to use 'tee' to save off a copy of some randomly
generated input data in case my program does something interesting
(unexpected/buggy) with it:
input-generator | tee saved.data | my_application
If it does something screwy, I can copy saved.data into our bug-tracker and
add it to the regressions.
Matt
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Discuss
mailing list