diff options
Diffstat (limited to 'examples/command-help')
-rw-r--r-- | examples/command-help | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/command-help b/examples/command-help new file mode 100644 index 0000000..3482bcb --- /dev/null +++ b/examples/command-help @@ -0,0 +1,10 @@ +#!/bin/sh + +if [ -n "$EXEEXT" ] && [ "$OSTYPE" = MSYS ] ; then + EXEEXT=.exe +fi + +for command in ed sel tr val fo el c14n ls esc unesc pyx p2x ; do + ./xmlstarlet $command --help | ${SED:-sed} -n \ + "s@^\\(Usage: \\).*xml$EXEEXT\\( $command\\).*@\\1xml\\2@p" +done |