[wellylug] simple super basic bash question

Brent Wood pcreso at pcreso.com
Tue Dec 21 17:13:26 NZDT 2004


--- jumbophut <jumbophut at gmail.com> wrote:

> > 
> 
> If you think of cut as 'select', grep/sed as 'where', join as 'join',
> you've got a relational database from bash.  It does actually work
> too, for very simple problems.

You might have a query tool capable of tasks analagous to simple SQL's, but
there is more to a _relational_ database than just SQL. Or so I think Codd &
Date believed :-)

> 
> Brilliant tutorials for some of the text tools here:
> 
>
http://www-106.ibm.com/developerworks/edu/l-dw-linux-lpir22-i.html?S_TACT=104AHW03&S_CMP=EDU
> (one section only)
> 
>
http://www-106.ibm.com/developerworks/edu/l-dw-linux-gnutex-i.html?S_TACT=104AHW68&S_CMP=LINUXLPBB
> 

Sigh...

All this stuff is there, the hardest thing is finding the info about how to do
all the difficult things I wanna do that would be trivial to do if I knew how
to do them properly!

(That's a fun sentence- but don't ask me about the grammar, I don't know the
command for checking that)

Like the ghastly shell script formatting stuff I was trying to do 'til some
helpful sod said use printf. How was I supposed to know there was a shell
version? 

So (hint) if you want to output formatted text strings from a script, try
printf. It's not just a C command. :-)



Cheers




More information about the wellylug mailing list