[PLUG] Databses

Ravi Agrawal rkacomtechnical at yahoo.co.in
Tue Apr 10 13:53:51 IST 2007


--- Ritesh Khadgaray <khadgaray at gmail.com> wrote:

> 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
> 
yaa i agree this can be done. But everytime i do a
single update it has to copy and then move. I want
some cleaner way.
> 
> -- 
> Ritesh Khadgaray
> ॐ मणि पद्मे हूँ
> LinuX N Stuff
> Ph: +919970164885
> Eat Right, Exercise, Die Anyway.
> 
> 
> --
>
______________________________________________________________________
> Pune GNU/Linux Users Group Mailing List:     
> (plug-mail at plug.org.in)
> List Information: 
>
http://plug.org.in/cgi-bin/mailman/listinfo/plug-mail
> Send 'help' to plug-mail-request at plug.org.in for
> mailing instructions.
> 



      Send a FREE SMS to your friend's mobile from Yahoo! Messenger. Get it now at http://in.messenger.yahoo.com/




More information about the Plug-mail mailing list