Revision [1231]

Last edited on 2010-02-15 10:18:51 by DavidLee
Additions:
||-x,-xpath xpath-expr||Evaluate the xpath expression on each file to generate the basename of the new file||
||-d,-dir dir|| Specifies a new directory to move the file to||
Deletions:
||-xpath xpath-expr
-x xpath-expr|| Evaluate the xpath expression on each file to generate the basename of the new file||
||-dir dir
-d dir|| Specifies a new directory to move the file to||


Revision [1131]

Edited on 2010-01-07 12:37:17 by DavidLee
Additions:
Will move the file to **root/123.xml**
Deletions:
Will move the file to
**root/123.xml**


Revision [1130]

Edited on 2010-01-07 12:36:31 by DavidLee
Additions:
Move all xml files to a directory equal to the root element name and base name equal to the text value of the child id element.
If the XML looks like
%%(xml)
<root>
<id>123</id>
<name>value</name>
</root>
xmove -mkdir -x 'concat(node-name(/node()),"/",/node()/id)' *.xml
Will move the file to
**root/123.xml**
Deletions:
xmove -mkdir -x 'concat(node-name(/node()),"/",/node/id)' *.xml


Revision [1129]

Edited on 2010-01-07 12:29:13 by DavidLee
Additions:
The xpath expression can be used to create part of the destination directory.
For example
%%
xmove -mkdir -x 'concat(node-name(/node()),"/",/node/id)' *.xml
%%


Revision [1125]

Edited on 2010-01-07 12:22:34 by DavidLee
Additions:
||-mkdir||Create parent directories of target if not exists||
Deletions:
||-mkdir|Create parent directories of target if not exists||


Revision [1124]

Edited on 2010-01-07 12:22:26 by DavidLee
Additions:
||-mkdir|Create parent directories of target if not exists||


Revision [1052]

Edited on 2009-11-25 18:18:04 by DavidLee
Additions:
||-xpath xpath-expr
-x xpath-expr|| Evaluate the xpath expression on each file to generate the basename of the new file||
||-dir dir
-d dir|| Specifies a new directory to move the file to||
||-ns namespace|| Adds namespace declarations. Required if the xpath expression requires namespaces||
||-f||Force move (deletes target file if it exists)||
||files|| List of files to move/rename||
[[Commands]]
Deletions:
-xpath
-x xpath-expr Evaluate the xpath expression on each file to generate the basename of the new file
-dir
-d dir Specifies a new directory to move the file to
-ns namespace Adds namespace declarations. Required if the xpath expression requires namespaces
-f force Force move (deletes target file if it exists)
files List of files to move/rename


Revision [883]

The oldest known version of this page was created on 2009-11-23 07:26:57 by DavidLee
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki