I didn’t test this, but it will change the whole URL while changes are only needed in its fragment component (after the first #
).
I didn’t test this, but it will change the whole URL while changes are only needed in its fragment component (after the first #
).
skip the following substitute command if the line contains an http link in markdown format
Why you assume there’s only one link in the line?
Also, you perform substitutions in the whole URL instead only the fragment component.
Do what you want to. Why should we care?
Bad advise for sed. regex101 doesn’t support POSIX regexes, so you are unable to get the same results as with sed
.
NB: global substitution s///g
is not applicable here because you need to perform new substitutions in a substituted text. Both sed
regexp syntaxes (basic and extended) don’t support lookarounds that could solve this issue.
As I see, you’ve already got an answer how to convert text to lower case. So I just tell you how to replace all occurrences of %20
with -
. You need to repeat substitution until no matches found. For such iteration you need to use branching to label. Below is sed script with comments.
:subst # label
s/(\[[^]]+\]\([^)]*#[^)]*)%20([^)]*\))/\1-\2/ # replace the first occurrence of `%20` in the URL fragment
t subst # go to the 'subst' label if the substitution took place
However there are some cases when this script will fail, e. g. if there is an escaped ]
character in the link text. You cannot avoid such mistakes using only simple regexps, you need a full featured markdown parser for this.
With fail2ban single bot behind a NAT can make the site unaccessible for all users behind that NAT.
What does the locale
command say? Have you tried to change a font?
Disable systemd-resolved.service? Uninstall systemd-resolved?
Yes. Just partition the drive manually, install packages with debootstrap, bind-mount /proc, /sys and /dev, chroot into it and install a bootloader. If you don’t understand what I say, you have to run an installer, possibly in a VM.
It is documented in libapt-pkg-doc
(/usr/share/doc/libapt-pkg-doc/method.html/index.html
).
Why you say “Linux” when you mean “Fedora”?
If I’d decide to implement something like this, I’d consider two options: local repo with file://
scheme or custom apt-transport. HTTP server is needless here. (But I’ll never do this because I prefer to rebuild packages myself if there’s no repo for my distro.)
No, it is impossible to solve this on filesystem level. In theory, it would be possible to adopt some video codec for compression of such photo series, but it would be a lot of work to integrate it into immich.
There’s one case when you can’t avoid using command line. If you ask someone on Internet to help you, he will say you to type some commands. No window clicking, no screenshots will help. All GUIs are different, but CLI is (almost) always the same, and its output is well searchable. That’s why you see numerous command line listings in each topic discussing problems and could decide it’s impossible to use Linux without coding.
In depends on how dumb the user is. If you want to see drive C:\
and don’t want to learn why there’s no such a thing, forget about Linux (and any other OS except the only one you are familiar with). If you are ready to learn new concepts and just don’t want to remember numerous commands, that’s OK, just pick up a distro with advanced DE and graphical admin tools.
What does an ordinary RHEL admin do when something does not work?
setenforce 0
“Easy to use” means that you do less and get more. Learning doesn’t count if you learn something once and then use the skills you obtained many times.
No, some piano plays are still harder than others, mo matter how long you practice. Editing text with vim is easier than with nano after some practice.
You won’t get it here. Everybody will recommend his favorite distro.
IMHO the best would be to solve your problems in OpenSUSE. This is definitely possible. You really need to switch to another distro only if you feel youself uncomfortable with the release cycle, package management tools or packages present in the repo of your current distro.