Is there a database built into the base system
Polytropon
freebsd at edvax.de
Fri Apr 7 18:43:15 UTC 2017
On Fri, 7 Apr 2017 07:52:58 +0100, Steve O'Hara-Smith wrote:
> On Fri, 7 Apr 2017 08:21:16 +0200
> Andrea Venturoli <ml at netfence.it> wrote:
>
> > On 04/07/17 07:43, Steve O'Hara-Smith wrote:
> > > On Thu, 6 Apr 2017 14:05:41 -0700
> > > Karl Young <karly at kipshouse.org> wrote:
> > >
> > >> I'd suggest, Python, Perl, TCL, Ruby, ... anything but csh (or bash)
> > >> for a job like this.
> > >
> > > Trouble with that is the OP wanted something in the base system
> > > and the only scripting languages in base are the shells and awk.
>
> Indeed. I think the best options within the base are awk or C/C++
> with db (btree), although shell supported by grep, sed, sort et al. is
> possible - after all there's a complete SQL implementation written that way
> in shql.
I'd say it depends on performance expectations. When you do
the database magic with grep/sed/awk/cut/tr/bc etc., you can
enclose everything in a sh wrapper. But performance will not
be that good especially for higher input volumes or more
complex algorithms. You can achieve much better results in
using C with the BerkeleyDB interface. Every solution has
its advantages and downsides, though. :-)
--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions
mailing list