In shell, I need to extract specific query parameter from URI.
I tried to play around with this to get "offset" value
echo "/mypath/index.php?offset=20&query=uro" | perl -MURI -le 'chomp($url = <>); print URI->new($url)->query_form("offset")'
But it always returns just offset=20&query=uro
Please help