URLCODING(3)
π URLCODING π
okay so bestie, pull up a chair π this one lives in the LOCAL manual section, and it's a Libbash library for encoding and decoding URL's. yes, that kind of URL. the fun kind. let's get into it π¦
β¨ NAME β¨
urlcoding β a Libbash library for encoding and decoding URL's.
πΈ SYNOPSIS πΈ
urlEncodeString [-l] β¨STRINGβ©
urlEncodeFile [-l] β¨FILEβ©
urlEncodeStream [-l]
urlDecodeString β¨STRINGβ©
urlDecodeFile β¨FILENAMEβ©
urlDecodeStream
π DESCRIPTION π
urlcoding is a whole collection of functions that convert ASCII-text into standard URL's, and do the reverse too β URL's back to ASCII-text. it's giving translator, it's giving bilingual icon π
the AWK code doing all the heavy lifting is based on code by Heiner Steven <heiner.steven@odn.de> β credit where credit is due, we stan π«Ά
here's the function list, no gatekeeping:
urlEncodeStringβ creates a URL from an ASCII stringurlEncodeFileβ converts a file into URL-valid texturlEncodeStreamβ converts standard input into URL-valid texturlDecodeStringβ converts a URL-encoded text back to a plain-text formurlDecodeFileβ converts URL-encoded text in a file back to plain texturlDecodeStreamβ converts URL-encoded standard input to text
detailed interface description follows, keep reading, it's worth it β¨
the [-l] option for the encoding functions? yeah, use that one when line-feed characters ('\n') are to be encoded as well. lowkey important π
all functions print the results of their conversions to standard output. every single one. no exceptions, periodt π
and the exit status of all functions is that of the command awk, with 0 for success. so if awk is happy, everybody's happy π
π FUNCTIONS DESCRIPTIONS π
π urlEncodeString [-l] β¨STRINGβ©
converts STRING β a string of ASCII characters β to URL. slay β¨
π§ urlEncodeFile [-l] β¨FILEβ©
Coverts FILE of URL-encoded text to plain text. (that's what it says, bestie β I'm just the messenger π)
π¦ urlEncodeStream [-l]
converts text from standard input to URL-text. stream it, queen π
π urlDecodeString β¨STRINGβ©
converts URL-encoded string STRING back to text. the reverse heist π₯
π urlDecodeFile β¨FILENAMEβ©
converts the URL-encoded text in FILE to plain text.
β urlDecodeStream
converts the URL-encoded text from standard input to plain-text. last one, you made it π
π AUTHORS π
Alon Keren <alon.keren@gmail.com> β main character energy, honestly π
π SEE ALSO π
ldbash(1), libbash(1)
this page isLinux,UNDATED, and it'sURLCODING(3). that's the whole vibe check, bestie β now go encode something cute π β¨π
π¦ where this page comes from
- debian bookworm: libbash 0.9.11-3 Β· GPL-3.0-only
- debian trixie: libbash 0.9.11-3 Β· GPL-3.0-only
- ubuntu jammy: libbash 0.9.11-3 Β· GPL-3.0-only
- ubuntu noble: libbash 0.9.11-3 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms