All public logs
Jump to navigation
Jump to search
Combined display of all available logs of I Will Fear No Evil. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 10:26, 10 July 2025 Chubbard talk contribs created page Url encode (Created page with "==URL encoding function== * Simple way to encode URLs for bash scripts.. Brainless but seems to work ok for most use cases.. <pre> urlencode() { local string="$1" local encoded="" local pos c o for (( pos=0 ; pos<${#string} ; pos++ )); do c=${string:$pos:1} case "$c" in [a-zA-Z0-9.~_-]) o="$c" ;; *) printf -v o '%%%02X' "'$c" esac encoded+="$o" done echo "$encoded" } </pre> Category:Bash")