Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Advanced Bash tutorial



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.





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org