O takim np. kodem wyświtlisz info:
curl 'http://aur.archlinux.org/rpc.php?type=info&arg='"flv2x264" \
2>/dev/null \
|sed 's/{\|}\|\[\|\]//g
s/^\("type":".*"\),"results":\(.*\)/,\1,\2/g
s/,"/'"\n"'/g
s/":/=/g
s/\\\//\//g'A takim wyszukasz pakiety:
curl 'http://aur.archlinux.org/rpc.php?type=search&arg='"pacman" \
2>/dev/null \
|sed 's/{\|}\|\[\|\]//g
s/^\("type":".*"\),"results":\(.*\)/,\1,\2/g
s/,"/'"\n"'/g
s/":/=/g
s/\\\//\//g' \
|sed '/Name=/!d
s/Name="\(.*\)"/\1/g'Oczywiście to nie jest może uniwersalny interpretator jsona pod bash ale z zadaniem sobie radzi, mój klient aura jest o to oparty ale jest też wiecznie niedokończony, więc na razie go nie udostępnię.. Jest jakiś inny interpretator tego ohydnego jsona dla basha?