• 0 Posts
  • 38 Comments
Joined 4 years ago
cake
Cake day: April 12th, 2021

help-circle
  • You use the word “declare” a lot. I am not sure, but in Nix I declare the desired state of installed packages and configurations in an obscure language and the package manger takes care of that, right?
    Now the module declare reasonable default configurations? Like http server starts on system start and serves on port 80?
    Now you lost me at the Home-Manger. I can declare stuff in my home folder. OK, so for user-wide configuration? For packages and configuration in the user space? Or what?










  • mogoh@lemmy.mltolinuxmemes@lemmy.worldEasy, it's uuuuuuuuh…
    link
    fedilink
    arrow-up
    47
    arrow-down
    1
    ·
    3 months ago

    Which one of these commands is correct?

    A: sed -E 's/\b(\w+)\b/echo \1 | rev/g' file.txt
    B: sed 's/\b\w+\b/echo & | rev/ge' file.txt
    C: sed -E 's/(\w+)/$(echo \1 | rev)/g' file.txt
    D: sed 's/\([a-zA-Z]\+\)/\n&\n/g; s/\n\(.*\)\n/\3\2\1/g; s/\n//g' file.txt

    Chatty was so kind to transcribe. May contain errors.