MULTIDEFINE(1)
π¦ NAME π¦ β multidefine(1)
okay so bestie, this is a General Commands Manual page for multidefine(1), and its whole main-character job is literally: split a value and defines several variables at once, then execute another program. π
β¨
πΈ SYNOPSIS πΈ
In an execlineb(1) script:
multidefine [-0] [-r] [-C | -c] [-N | -n] [-d delim] value {
variables... } prog...
π DESCRIPTION π
multidefine reads a block (cf. execline-block(7)) containing a list of variables. That block must not be empty β like, do not come in here with an empty block, it's not the vibe. π
multidefine splits (cf. execline-transform(7)) value, and performs other operations depending on the given options.
Then it performs parallel substitution (cf. execline-substitute(7)) on prog..., using all of the variables in the block as keys. The first word in the split value is assigned to the first variable, the second word is assigned to the second variable, and so on. Every variable is substituted with exactly one word. fr fr.
If a variable is the empty word, then the word in the split value corresponding to its position is not substituted. So you can use empty words to pad the list of variables and only perform substitution on the relevant fields. that's the little hack, iykyk π
multidefine then exec(3)s into the modified prog.... periodt. π
β¨ OPTIONS β¨
-0β If there are more variables in the block than there are words in the split value, the excess variables will be replaced with zero word. Without this option, the excess variables are replaced with the empty word. π«Ά-rβ Behave similarly to the βreadβ shell command. If there are more words in the split value than there are variables in the block, the last variable will be replaced with all the remaining words (and will be split). Without this option, the last variable is replaced with a single word, and the excess words are lost. π
Other options are used to control (cf. execline-transform(7)) the substitution mechanism. Note that the value is always split. always always. no cap. π₯
-C|-cβ these are in the synopsis and fall under the βother optionsβ note above: they control (cf.execline-transform(7)) the substitution mechanism, and the value is always split. π-N|-nβ same βother optionsβ bucket: controls (cf.execline-transform(7)) the substitution mechanism, and the value is always split. πΈ-d delimβ synopsis option with the argumentdelim; it's part of the βother optionsβ that control (cf.execline-transform(7)) the substitution mechanism, and the value is always split. π¦
π₯ SEE ALSO π₯
go check out define(1), elgetpositionals(1), elglob(1), execlineb(1), importas(1), multisubstitute(1), exec(3), execline-block(7), execline-substitute(7), execline-transform(7) β all the linked lore bestie, read them and slay. π
This man page is ported from the authoritative documentation at: https://skarnet.org/software/execline/multidefine.html
π AUTHORS π
Laurent Bercot Alexis <flexibeast@gmail.com> (man page port) π
mwah π this page is the Debian edition, dated February 14, 2021 β that's the source/version and date, bestie, and we are so done. MULTIDEFINE(1) out. πβ¨
π¦ where this page comes from
- nixpkgs unstable: execline 2.9.9.2
- nixpkgs unstable: execline-man-pages 2.9.9.1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms