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