CDIST-TYPE__SED(7)
π cdist-type__sed β the cdist manual page, bestie edition β¨
okay so this is cdist-type__sed(7), part of the cdist fam, and it's genuinely one of my faves. it's a __sed type. yes, THAT sed. the text-file-transforming legend. let's get into it π
πΈ NAME πΈ
cdist-type__sed β transform text files with sed π
π¦ DESCRIPTION π¦
literally what it says on the tin: it transforms text files with sed. no cap. that's the whole vibe. β¨
π REQUIRED MULTIPLE PARAMETERS π
these ones you GOTTA give, and you can give more than one, so don't skimp π«Ά
scriptβ thesedscript, bestie. and listen: if you pass-as the value, then the script gets read from stdin instead. iconic behaviour fr fr.
π OPTIONAL PARAMETERS π
optional but honestly kind of the moment:
fileβ path to the file. defaults to$__object_idif you don't say anything, which is lowkey convenient πonchangeβ run this command ifsedactually changes the file. like, only if it changes. if nothing changed, nothing happens. periodt.
β BOOLEAN PARAMETERS β
flags that are just... on. no value, just vibes π
regexp-extendedβ use extended regular expressions in the script. heads up though: it might not be supported with everysedversion. so like, check yoursed, bestie π
π₯ EXAMPLES π₯
here's the tea, in code, exactly as written:
__sed /tmp/foobar --script 's/foo/bar/'
echo 's/foo/bar/' | __sed foobar --file /tmp/foobar --script -
see that second one? piping the script in and using -? main character energy honestly π
π AUTHORS π
Ander Punnar <ander-at-kvlt-dot-ee> β thank you for your service π«‘π
π§ COPYING π§
Copyright (C) 2021 Ander Punnar. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
(that's the GPL v3-or-later vibe, and yes you should read the actual license if you're gonna do the thing, iykyk π)
π COPYRIGHT π
ungleich GmbH 2021 β periodt π
and that's the whole page, bestie! no skips, no cuts, every flag accounted for πΈ
version 7.0.0, dated Jul 31, 2022 β from your cdist bestie with love, mwah πβ¨π¦
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms