Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Database for Shell Scripts

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
US
Hello,

On a Sun Solaris 8 system I write many Bourne shell scripts. I am at the point where I need a simple database (like dBase etc.) for various tasks.

I think I have exhausted the "almost" databases with the help of awk,nawk,sed,grep and other UNIX string processing tools. I am trying to avoid syntax like:

MYSTRING=*&)(*&SDASDJS cut 0909 Dgrepas(SD*SDF {print $1} )D(DS)F(ODLKMFD)_FIDS<DSF DF)DS(grep=0DF_)(S+D_)grep|S()DF*)(SDJJ sed )SD(FS( :)

I am ideally looking for a script library that uses all the native Sun UNIX OS binaries (grep/sed/awk) in a more abstracted and easy to use syntax.

Can anyone make any recommendations on a simple database for shell script usage?


Thanks,

Michael42
 
Mysql. You can write your sql commands, pipe them to mysql and read the output from standard out. Or you can be clever, start a mysql shell with stdin and out on file descriptors and read and write to them as you need.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top