URLCODING(3)

πŸ“¦
version 0.9.11 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸŽ€ 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 string
  • urlEncodeFile β€” converts a file into URL-valid text
  • urlEncodeStream β€” converts standard input into URL-valid text
  • urlDecodeString β€” converts a URL-encoded text back to a plain-text form
  • urlDecodeFile β€” converts URL-encoded text in a file back to plain text
  • urlDecodeStream β€” 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 is Linux, UNDATED, and it's URLCODING(3). that's the whole vibe check, bestie β€” now go encode something cute πŸ’…βœ¨πŸŽ€
πŸ“¦ where this page comes from