2021-05-02T00:07:22 #kisslinux Any opinions about adding an option to fetch packages from void musl repos to KISS? 2021-05-02T00:16:11 #kisslinux heck no 2021-05-02T00:16:22 #kisslinux sounds like a good idea for a kiss extension 2021-05-02T00:16:26 #kisslinux but not mainline kiss 2021-05-02T00:17:19 #kisslinux it doesn't align with the guidestones, and relies on external infrastructure 2021-05-02T00:18:11 #kisslinux not to mention that the void musl packages work with mainline kiss rootfs, but not all people using kiss are using the kiss rootfs/distrobution/same set of core packages 2021-05-02T00:18:21 #kisslinux it does sounds like a massively useful tool though 2021-05-02T00:23:24 #kisslinux Making it an extension is actually a really good idea 2021-05-02T03:42:26 #kisslinux Hi 2021-05-02T04:58:52 #kisslinux Well, I'll go for now. cya! 2021-05-02T07:52:44 #kisslinux Does anyone know a better tool than sed to act on input that contains chracters like |, , & etc. ? I can't escape them cuz reading from a file 2021-05-02T08:26:00 #kisslinux awk? 2021-05-02T08:36:19 #kisslinux you have to give us more details, testuser_[m] 2021-05-02T08:44:34 #kisslinux I have a file like this http://0x0.st/-aOk.txt which is markdown, then converted to html. 2021-05-02T08:44:36 #kisslinux Then a script takes that converted file, extracts the filename `script.sh`, syntax highlights that file (html) and is supposed to replace the `{{include }}` line with the generated html 2021-05-02T08:44:52 #kisslinux aarng 2021-05-02T08:45:40 #kisslinux Stuck at the replacing part 2021-05-02T08:49:02 #kisslinux if the syntax highlighted file, is an actual file on disk, you can use `sed`'s r command to read it 2021-05-02T08:51:05 #kisslinux I guess you are trying to s/// the new content into that line via a variable containing the new syntax highlighted content? 2021-05-02T08:51:19 #kisslinux Yeah 2021-05-02T08:51:21 #kisslinux hi guys 2021-05-02T08:51:25 #kisslinux Hi 2021-05-02T08:51:56 #kisslinux ok, then I'd use the c command maybe 2021-05-02T08:52:01 #kisslinux Finally got my laptop fixed, working in a chroot was misery 2021-05-02T08:52:36 #kisslinux hi 2021-05-02T08:52:47 #kisslinux hi aarng 2021-05-02T08:53:21 #kisslinux What do you mean by "r" command and "c" command ? 2021-05-02T08:56:15 #kisslinux Ah found it 2021-05-02T09:01:44 #kisslinux As we have seen, a plague can indeed be powerful. 2021-05-02T09:03:59 #kisslinux :w 2021-05-02T09:04:21 #kisslinux wrong window 2021-05-02T09:05:07 #kisslinux testuser_[m]: forget the c command, it can only add a single line 2021-05-02T09:08:50 #kisslinux (if you use a variable) 2021-05-02T09:28:51 #kisslinux aarng thanks, the r command seems to work, but it is appending to the next line after the match instead of replacing it 2021-05-02T09:38:19 #kisslinux just use d to delete it first 2021-05-02T09:39:06 #kisslinux cool 2021-05-02T09:39:12 #kisslinux e.g. '/search pattern/{ d;r file }' 2021-05-02T09:41:40 #kisslinux btw is it possible to use something other `/` here like you can in `s||g` ? it says "unsupported command |" 2021-05-02T09:48:48 #kisslinux I dont think you can, only possible with "s" 2021-05-02T10:11:14 #kisslinux one last thing, how can i escape `{` and `}` in the first statement so that i can use them like `/{{ text }}/{d;r file}/' ? escaping them regularly makes sed think its a regexp 2021-05-02T10:18:29 #kisslinux if you use basic regular expressions, you dont have to escape the curly braces 2021-05-02T10:24:27 #kisslinux if i dont do anything then it says "unterminated {": `printf "testn{{ text }}" | sed '/{{ text }}/{d; r /tmp/file}'` 2021-05-02T10:24:55 #kisslinux but if i remove the "testn" part then it doesnt complain about anything 2021-05-02T10:30:29 #kisslinux sorry, my bad 2021-05-02T10:30:53 #kisslinux the read command basically takes the closing } as part of the filename 2021-05-02T10:31:49 #kisslinux -e '/search pattern/{ d;r file' -e '}' 2021-05-02T10:32:00 #kisslinux that should do the trick 2021-05-02T10:33:02 #kisslinux every -e