[xml] Can xmllint format with in-place file saving?
- From: mruhrbach aim com
- To: xml gnome org
- Subject: [xml] Can xmllint format with in-place file saving?
- Date: Sun, 1 Aug 2010 10:37:57 -0400 (EDT)
Hello list,
I run xmllint to format my XML file: xmllint --format file.xml
The output goes to stdout, so I capture it in a file: xmllint --format
file.xml > formatted.xml
Now I replace the old with the new: mv formatted.xml file.xml
Question: can this be done in one step? I imagine something like:
xmllint --format --in-place file.xml, as is known form sed.
Thanks!
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]