News for hackers. Stuff that matters.
Re:How to rewrite files in Linux by swillden on Sunday March 08, 2009 @01:20PM (#507339)
Possibly. The ability to view/tweak the file in a text editor is something I find very convenient, but it's less important than consistency.
Re:How to rewrite files in Linux by jrockway on Sunday March 08, 2009 @10:06PM (#507816)
You can always write a wrapper to start a transaction, extract the file from the database, exec $EDITOR on it, replace the database data with the file, and commit the transaction. That is very safe, and very easy to do. (And, you can make the txn apply to multiple files, which is quite useful.)

We use this technique in the command line utility for KiokuDB.