Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Activity for terdon‭

Type On... Excerpt Status Date
Edit Post #291453 Initial revision 6 months ago
Answer A: Does Fedora have cutting edge features, and what makes it so?
I think the Fedora project documentation covers this in the "First" section (emphasis mine): > ## First > > We are committed to innovation. > > We are not content to let others do all the heavy lifting on our behalf; we provide the latest in stable and robust, useful, and powerful free softw...
(more)
6 months ago
Suggested Edit Post #290386 Suggested edit:
I'm really sorry. That was added by mistake!
(more)
declined 8 months ago
Comment Post #290386 Oh wow, sorry @#53937, I just saw this comment. The `[]()` was a typo or a mistaken copy paste or something, sorry. I just wanted to quote the file name, I didn't mean to add that nonsense, my bad!
(more)
8 months ago
Edit Post #290386 Post edited:
Made safe for file names with spaces or other weird characters
11 months ago
Suggested Edit Post #290386 Suggested edit:
Made safe for file names with spaces or other weird characters
(more)
helpful 11 months ago
Suggested Edit Post #289999 Suggested edit:
| acts as a line terminator, there is no need for \ and then |
(more)
declined about 1 year ago
Comment Post #290119 Nice! One simple and important improvement you can make is to replace all uses of `echo` with `printf` for safety and portability. See https://unix.stackexchange.com/q/65803/22222. And avery minor one: you don't need to end a line with `\ ` if the next starts with a `|`. The `|` is a natural place to...
(more)
about 1 year ago
Comment Post #290009 Fair enough. I tend to avoid using a second tool for the overhead (re why not use grep) but I agree that it is a very minor concern in this context. Glad to hear about the upcoming POSIX thing, but we will still need to handle newlines for a few years to deal with backwards compatibility. And anyway,...
(more)
about 1 year ago
Comment Post #290119 What is `grepc`? is that an alias you have, or is it a standalone program that is designed to search through Linux C code or something?
(more)
about 1 year ago
Comment Post #290009 Why not `find . -type f -name '*-min.jpg-*' -print0` to avoid the `grep`? And there is no reason to assume the random string will only have alphanumerical values. Also note that this has nothing to do with portability. All *nix systems accept everything except `/` and `\0` in file names.
(more)
about 1 year ago
Edit Post #290012 Post edited:
Might as well make it safe for filenames beginning with -
about 1 year ago
Suggested Edit Post #290012 Suggested edit:
Might as well make it safe for filenames beginning with -
(more)
helpful about 1 year ago
Comment Post #289510 Note that you can always do `sleep 600 && some_cmd &` and that will not block, it will keep running in the background _as long as you don't close the terminal it was launched from_ .
(more)
about 1 year ago
Comment Post #289207 I suspect this won't be possible, but can you explain why you want this? Maybe there is a workaround. For example, if it is just about being able to click-open this specific directory, you could make a non-hidden symlink and that would solve it, but we need to understand the use case in order to help...
(more)
over 1 year ago
Suggested Edit Post #289036 Suggested edit:
Added the commands the OP can use to fix the permissions
(more)
declined over 1 year ago
Edit Post #288963 Post edited:
Since multiple -e is the standard portable way, I removed the bit saying that is less portable.
over 1 year ago
Suggested Edit Post #288963 Suggested edit:
Since multiple -e is the standard portable way, I removed the bit saying that is less portable.
(more)
helpful over 1 year ago
Comment Post #288963 Ah, OK, I haven't used BSD sed (which is the one that ships with macOS, I think) much, but I can confirm that supporting multiple `-e` is indeed part of [the POSIX specs](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html) so that'll be the most portable option. Kudos for pointing ou...
(more)
over 1 year ago
Comment Post #288963 The OP mentioned whitespace, but this will only remove spaces. Also, you have the portability backwards, `-e` should be supported by most (all, I think, pretty sure that's POSIX) sed implementations, it's passing multiple commands in a single call (`sed 'foo; bar'`) that isn't portable. GNU sed can d...
(more)
over 1 year ago
Edit Post #288678 Initial revision over 1 year ago
Answer A: Are there any legitimate uses for newlines in filenames?
Although this would be bad design for other reasons, I can imagine a situation where a field from one file or database can be used as a file name. Imagine something like ``` value="$(mysql -e 'select value from table')" touch -- "$value" ``` This could then be used as some sort of misguided...
(more)
over 1 year ago
Comment Post #287334 Note that this sort of thing normally goes into the `profile` family of files that are read by login shells (`~/.profile` for example) and not into `.bashrc`. It doesn't make much difference on modern machines, it's just slightly less efficient since `.bashrc` is read on every new non-login interacti...
(more)
over 1 year ago
Edit Post #288556 Post edited:
It isn't inconceivable that a user's $HOME can contain a space
over 1 year ago
Comment Post #288309 This does sound reasonable but how would we do that? Are you suggesting building a collection of canonical reference posts that can be referred to in answers? Over at Unix & Linux SE, I would try (but not always succeed) to break down any one liners into their constituent parts, explaining each of th...
(more)
over 1 year ago
Edit Post #288613 Initial revision over 1 year ago
Answer A: Split "installation" into "OS-installation" and "software-installation"
This sounds like a good idea. Installing an OS is a very different task to installing a piece of software on that OS and you can have experts in either of them with the two groups not necessarily overlapping. I think it makes a lot of sense to have them separate.
(more)
over 1 year ago
Edit Post #288612 Initial revision over 1 year ago
Answer A: Can I enter raw strings in fish to avoid escaping regexes for sed?
What do you want to find though? Is the `+` a quantifier, meaning you are looking for one or more `b`? Or are you looking for the literal string `b+`? If the latter, you don't need to escape at all and if the former, you can just use `sed -E 's/b+/X/'` directly. The reason you need to escape in s...
(more)
over 1 year ago
Suggested Edit Post #288556 Suggested edit:
It isn't inconceivable that a user's $HOME can contain a space
(more)
helpful over 1 year ago
Comment Post #288544 No, not really, they are just the commands that load (`modprobe`) and unload (`rmmod` or, actually, these days `modprobe -r` instead) modules ("drivers" in the Windows world) from the kernel. What you describe is often caused by a new module that needs to be reloaded although I haven't seen this in a...
(more)
over 1 year ago
Edit Post #288405 Post edited:
minor fix
over 1 year ago
Comment Post #288544 Can you pinpoint exactly what you updated? You might (might) be able to `rmmod` and then `modprobe` the relevant kernel module, but the details will depend on exactly what needs to be done.
(more)
over 1 year ago
Edit Post #288554 Initial revision over 1 year ago
Answer A: Download packages for full system upgrade without installing
You can use `-Suw` for that. I haven't actually tested it, but it should work according to the documentation. From `man pacman` (redactied/edited for clarity): > UPGRADE OPTIONS (APPLY TO -S AND -U) > > -w, --downloadonly > > Retrieve all packages from the server, but do not install/upgrade a...
(more)
over 1 year ago
Suggested Edit Post #288405 Suggested edit:
minor fix
(more)
helpful over 1 year ago