From owner-freebsd-questions@freebsd.org Fri Apr 7 00:17:27 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A2295D32E06 for ; Fri, 7 Apr 2017 00:17:27 +0000 (UTC) (envelope-from rtomek@tau1.ceti.pl) Received: from mailout4.ceti.pl (mailout3.ceti.pl [62.121.128.43]) by mx1.freebsd.org (Postfix) with ESMTP id 56CEDD8 for ; Fri, 7 Apr 2017 00:17:26 +0000 (UTC) (envelope-from rtomek@tau1.ceti.pl) Received: from localhost (localhost [127.0.0.1]) by mailout4.ceti.pl (Postfix) with ESMTP id 75E70C011D91A; Fri, 7 Apr 2017 02:11:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mailout1.ceti.pl Received: from mailout4.ceti.pl ([62.121.128.43]) by localhost (mailout1.ceti.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e+oWxODs1S57; Fri, 7 Apr 2017 02:11:02 +0200 (CEST) Received: from tau1.ceti.pl (tau.ceti.pl [62.121.128.11]) by mailout4.ceti.pl (Postfix) with ESMTP id 7DD13C00EB236; Fri, 7 Apr 2017 02:11:01 +0200 (CEST) Received: by tau1.ceti.pl (Postfix, from userid 3727) id 51A96960982; Fri, 7 Apr 2017 02:11:01 +0200 (CEST) Date: Fri, 7 Apr 2017 02:11:01 +0200 From: Tomasz Rola To: freebsd-questions@freebsd.org Cc: Ernie Luzar , Tomasz Rola Subject: Re: Is there a database built into the base system Message-ID: <20170407001101.GA5885@tau1.ceti.pl> References: <58E696BD.6050503@gmail.com> <69607026-F68C-4D9D-A826-3EFE9ECE12AB@mac.com> <58E69E59.6020108@gmail.com> <20170406210516.c63644064eb99f7b60dbd8f4@sohara.org> <58E6AFC0.2080404@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <58E6AFC0.2080404@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2017 00:17:27 -0000 On Thu, Apr 06, 2017 at 05:14:40PM -0400, Ernie Luzar wrote: [...] > inbound source ip address hits my front door. Have 3 flat text files > containing about 2000 ip address having a record size of 30 bytes. > I am afraid I may be approaching the max file size that csh can handle. > Thinking of simple db where the 3 files are indexed and can be > read/written with out sequentially process all the records. At the > proof of concept stage. If I had problem processing 2000 records (or 60 kilobytes) on a machine less than 20 years old, I would definitely rethink my strategy/algorithm. > I have programmed in pear script before where I can open a file and > process a record sequentially where only the next record is > buffered. csh does not have that kind of file handling that I know > of. > > You have any suggestions? I understand you need to run this under base system (because you want no ports). I guess you need to do "man awk" - it seems to be the only language capable enough in such environment. Albeit if you are masochist, you can stay with csh or learn sh (and sort, cut and few other things). -- Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did "rm -rif" on the programmer's home ** ** directory. And then the C programmer became enlightened... ** ** ** ** Tomasz Rola mailto:tomasz_rola@bigfoot.com **