Re: How to remove a single line from a flat file



On 17 touko, 18:30, Darren New <d...@xxxxxxxxxx> wrote:
I think we're starting to get to where the want-to needs is starting to
run into the able-to power of the machines again. Systems had mechanisms
back then for (say) seeking to meaningfully-identifiable places in a
file, adding/deleting/modifying records in the middle, and so on,
because you couldn't afford to duplicate a multi-megabyte file just
because you added something in the middle. Nowadays we're getting files
too large to reasonably fit on one disk, and we have no way of editing
them. Reinventing the wheel here.

If UNIX had just a couple more operations, like "insert some bytes" and
"delete some bytes", which would be pretty easy to add[1] by simply
keeping a "bytes used in this block" kind of counter for each block, you
could eliminate a whole class of problems.

I think that UNIX filesystem are simple (primitive if you want)
because UNIX itself is simple (primitive). It's just like keeping all
configuration information in ASCII files (or using ex ;-).

The system provides a very simple filesystem and it's up to the
programmer to implement a more advanced (complicated) mechanism on top
of it in the rare cases it's needed. Take syslog for example; file
access is serialized by using a global daemon that that is the only
process writing to the log files. Really simple and elegant if you ask
me :). If you want something more complicated than that, then you
should be using a databas which has its own methods for locking,
caching and stuff.

It would take a lot of legwork to convince me to use a filesystem with
almost database-like functionality just because a few programs might
need the features ;-)

.



Relevant Pages

  • Re: Problem: How to resize FreeBSD "partitions" on a live system?
    ... The beauty of Unix is you can customize to fit your needs. ... the / filesystem and install the OS from ground up and KNOW it is ... to re-arranging space for the partitions). ... The only way in Unix is to basically backup the system - and then ...
    (comp.unix.bsd.freebsd.misc)
  • Re: logical pathname help
    ... Who cares about the ... portablity when all we have is unix filesystem. ... operating systems and a common filesystem model. ... different file servers at the time: Unix, ITS, VMS, LMFS. ...
    (comp.lang.lisp)
  • SeverPAC observation - UNIX Filesystem setup
    ... I just installed z/OS 1.6 (not ... In the process of doing this, the UNIX "root" filesystem ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
    (bit.listserv.ibm-main)
  • Re: heres my noob install questions, smart people please help
    ... I would leave your Unix ... >homedir on a Unix filesystem, and mount the fat32 partition somewhere else. ... linux, for example .fla macromedia flash files, flash has issues under ...
    (Debian-User)
  • Re: Inter Process Communication
    ... >>Inter Process Communication mechanisms under Unix ... No, the guy seems to be posting tutorials from his web site, presumably for ...
    (comp.unix.programmer)