Convert percent-encoded file URL to local file in bash
Perl to the rescue:
echo file:///home/sashoalm/Has%20Spaces.txt |\ perl -MURI -MURI::Escape -lne \ 'print uri_unescape(URI->new($_)->path)'
See URI and URI::Escape.
Perl to the rescue:
echo file:///home/sashoalm/Has%20Spaces.txt |\ perl -MURI -MURI::Escape -lne \ 'print uri_unescape(URI->new($_)->path)'
See URI and URI::Escape.