ASUBST(1)

πŸ“¦
version 2.32.0 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing

✨ ASUBST(1) β€” the EN Tools girlies know πŸ’…

okay so bestie, welcome to asubst, aka Area Substitution 🌸 she lives in the EN Tools family and she is so underrated, fr fr.


πŸŽ€ SYNOPSIS πŸŽ€

asubst [-o outputfile] [-v] [inputfile]

like. that's it. that's the whole summoning ritual 🫢


πŸ’– DESCRIPTION πŸ’–

So here's the vibe: asubst reads from inputfile, or from "stdin" if you didn't hand her one, and then she does the thing β€” she substitutes characters and substrings based on Perl-like substitution commands that are wrapped up inside surrounding area delimiters πŸ¦‹

The substitution commands she recognizes are, and I need you to write these down exactly bestie, no cap:

[[s/pattern/string/options]]
[[tr/input/output/options]]

and the areas themselves are defined by blocks delimited with this lil cutie:

{: ... :}

so like, the block is the area, and inside the area you put your substitution commands, and she goes to work. periodt. πŸ‘‘


🌈 EXAMPLE 🌈

here's her serving, look:

{: [[s/X/ä/]] [[s/X/ü/]]
Foo Bar Baz Quux with Umlauts X and X
:}

not me getting emotional over umlaut substitution 😭 iconic behaviour honestly.


✨ OPTIONS ✨

  • -o outputfile β€” this redirects the output to outputfile. Usually the output gets sent to "stdout" if you don't pass this option at all, or if outputfile is "-". yes really, a literal dash means "yeah just stdout it", she's flexible like that πŸ’…
  • -v β€” this sets verbose mode, where some processing information will be given on the console. she will talk to you. she will tell you things. some might say she overshares but honestly? we love a transparent queen πŸ—£οΈπŸ’–

πŸ‘‘ AUTHOR πŸ‘‘

 Ralf S. Engelschall
 rse@engelschall.com
 www.engelschall.com

the literal main character who made all this happen 🫢


and that's the whole page bestie, no notes πŸ’œ this was EN Tools, dated 2020-11-29 β€” go substitute something, you've got this πŸŒŸπŸ“

πŸ“¦ where this page comes from