[PLUG] Databses

Ritesh Khadgaray khadgaray at gmail.com
Tue Apr 10 13:11:16 IST 2007


On Tue, 2007-04-10 at 07:41 +0100, Ravi Agrawal wrote:
<snip/>
> or xml. In xml i cant edit the file through command
> line utility. I am using xmlstarlet where it delete
> the records and prints on stdout but do not update the
> xml file so i need to to manually dump that in to temp


why not wrap this around a script ?

#!/bin/bash
xmlstarler "$*" |tee /tmp/out
cp -f /path/to/db/file /path/to/db/file.bak
mv -f /tmp/out /path/to/db/file


-- 
Ritesh Khadgaray
ॐ मणि पद्मे हूँ
LinuX N Stuff
Ph: +919970164885
Eat Right, Exercise, Die Anyway.





More information about the Plug-mail mailing list