Activity for AdminBeeā
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Answer | — |
A: What does the "Valid" column mean in the output of "faillock"? A good explanation is given on the RedHat Customer Portal. TL/DR: The `Valid` field indicates whether a record counts toward the lockout threshold (`V`) or not (`I`). The key seems to be the meaning of the `failinterval` configuration setting. From the manpage of `faillock.conf`: > `deny=n` > >... (more) |
— | 10 months ago |
Answer | — |
A: Simplest way of stripping leading/trailing whitespace from file or program output If I understand you correctly, you want to skip empty lines at the beginning of a file/stream strip leading and trailing whitespace of non-empty lines skip empty lines at the end of a file/stream.[]() This can be achieved using the following `awk` program: ```lang-bash awk 'NF==0{if (m) {b... (more) |
— | 10 months ago |
Answer | — |
A: Should posting on Meta affect reputation? Although my reputation would shrink substantially if that change were implemented ;) , I think it is the right choice to prevent votes on meta from affecting the reputation. The reason is that the very existence of this summary indicator can only be justified (cf. discussions on whether reputation... (more) |
— | 11 months ago |
Question | — |
Split "installation" into "OS-installation" and "software-installation" I would like to recommend splitting the "installation" tag into one for "OS-installation" and "software-installation". Although both are installation processes, the challenges associated with them are very distinct, which I believe justifies the new tags. The impact can be kept minimal by simply r... (more) |
— | 11 months ago |
Answer | — |
A: Can I enter raw strings in fish to avoid escaping regexes for sed? It is not the most elegant solution, but you may be able to use the `string escape` function of `fish`, as in: ```lang-shell echo abc | sed -E (string escape 's/b+/X/') ``` This would still escape the special characters, but in a "hidden" way - the user-visible RegEx is not cluttered with backsla... (more) |
— | 11 months ago |
Answer | — |
A: How to get number of files in directory A solution I often use (and which is ultimately a variation of the `find`-based approach in the answer by Canina) also uses `find`, but only prints a single `.` per file: ```lang-bash find . -maxdepth 1 -type f -printf '.' | wc -m ``` It then uses the `-m` flag of `wc` to print the number of char... (more) |
— | 11 months ago |