11 lines
130 B
Bash
Executable File
11 lines
130 B
Bash
Executable File
#!/bin/sh
|
|
|
|
while str isvalue "$1"; do
|
|
case "$1" in
|
|
*xml)
|
|
xq '.feed.pig' <"$1" ;;
|
|
*json)
|
|
jq '.feed.pig' <"$1" ;;
|
|
esac
|
|
done
|