| Zane Shelley | ba5dc16 | 2020-11-09 21:47:55 -0600 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |||||
| 3 | # Verify input. | ||||
| 4 | if [ ! -d "$1" ]; then | ||||
| 5 | echo "Invalid directory: $1" 1>&2 | ||||
| 6 | exit 1 | ||||
| 7 | fi | ||||
| 8 | |||||
| 9 | # Simply list out all of the XML files in the given directory. | ||||
| 10 | for i in "$1"/*.xml; do | ||||
| 11 | if [ -f "$i" ]; then | ||||
| 12 | echo "$i" | ||||
| 13 | fi | ||||
| 14 | done | ||||
| 15 | |||||