summaryrefslogtreecommitdiff
path: root/examples/command-help
blob: 3482bcbc7974275aa98c71cda0c8e41c6fdda542 (plain)
1
2
3
4
5
6
7
8
9
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