Dotfiles/bin/.bin/conversion/xml-to-json
2019-10-23 20:32:18 +01:00

4 lines
106 B
Bash
Executable file

#!/usr/bin/env bash
input="${1:-"/dev/stdin"}"
php -r "echo json_encode(simplexml_load_file('$input'));"