Encode url from bash
(original posted: 2012)
IF you need to encode parts of a POST url:
SUM=$(md5sum $APPNAME.tar.gz.gpg 1> /dev/null)
SUMENC=$(echo $SUM’ /*$$’ | perl -MURI::Escape -lne ‘print uri_escape($_)’)”
This entry was posted by stas on 02/12/2021 at 10:13 am, and is filed under Linux. Follow any responses to this post through RSS 2.0.
Both comments and pings are currently closed.
Comments are closed.