« first day (3203 days earlier)      last day (1742 days later) » 

4:20 PM
Can you specify a pattern prefix with alternating suffixes in grep? E.g. grep -E "prefix_suffix1|suffix2|suffix3". My understanding of such a command is that it would match line with "prefix_suffix", "suffix2", and "suffix_3"
nothing in the manpage for grep 2.20
 
@Ungeheuer I think you'd want to group them, if I'm understanding you correctly: grep -E 'prefix_(suffix1|suffix2|suffix3)' so that the alternation only applies to the various suffixes
woops, sorry about the bonus ^ anchor; I'll remove it
leftover from my testing :)
 
@JeffSchaller I had no idea grouping was a thing....thanks a ton Jeff!
 
@Ungeheuer sure thing! See also:
95
A: Why does my regular expression work in X but not in Y?

GillesUnfortunately, for historical reasons, different tools have slightly different regular expression syntax, and sometimes some implementations have extensions that are not supported by other tools. While there is a common ground, it seems like every tool writer made some different choices. The con...

 
That's awesome. I didn't see grouping the manpage, and pretty sure I didn't see it in the info manual. Great feature!
Can you star questions on unix stackexchange?
 
4:40 PM
@Ungeheuer yep, just below the downvote button, I think. A little gray star?
 
@Ungeheuer the question, not the answer :)
 
oof
 
also, in the grep man page, is:
> Precedence
Repetition takes precedence over concatenation, which in turn takes precedence
over alternation. A whole expression may be enclosed in parentheses to
override these precedence rules and form a subexpression.
 
lmfao i even asked about staring the question...........ooof
 
4:42 PM
prefixed by (hah!):
> Alternation
Two regular expressions may be joined by the infix operator |; the resulting
regular expression matches any string matching either alternate expression.
it's unfortunate that the man page doesn't put some literal parenthesis in there, since that's what I was searching for in trying to answer you :)
another instance of things being easier to find if you already know what they are
 
@JeffSchaller That's what I searched for and why i said I didn't see anything. I also tried searching for variations of "group"
 
LOL! I just checked the hot network questions and this one scribbles onto the line below it:
21
Q: Operation Unz̖̬̜̺̬a͇͖̯͔͉l̟̭g͕̝̼͇͓̪͍o̬̝͍̹̻

JoshuaI'm sure you're all familiar with Z̃͗̇̚͟Ḁ̬̹̈̊̂̏̚L̜̼͊ͣ̈́̿̚G̱̮ͩ̃͑̆ͤ̂̚Õ̷͇͉̺̜̲ͩ́ͪͬͦ͐ ̪̀ͤͨ͛̍̈͢ĝ̭͇̻̊ͮ̾͂e̬̤͔̩̋ͮ̊̈ͭ̓̃n͖͎̘̭̯̳͎͒͂̏̃̾ͯe͕̖̋ͧ͑ͪ̑r̛ͩa̴͕̥̺̺̫̾ͭ͂ͥ̄ͧ͆t͍̻̘̆o͓̥ͤͫ̃̈̂r̹̤͇̰̻̯̐ͮ̈́ͦ͂͞. If not, you can play with the classical generator a bit. Zalgo text is unicode text that started as English text and ha...

> Zalgo text is unicode text that started as English text and had a bunch of combining characters to make it hard to read artistic
aww, it lost the strike-throuogh of "hard to read"
 
woah how did that happen
its in the comments too
 
4:59 PM
hah, here it only works "well" in Firefox; Chromium displays a lot of squares
 
The same in Chrome.
 
5:18 PM
@derobert Hail Firefox, the best browser
 
@Ungeheuer I think you've made a typo. Surely you meant: H̤͔̰̣͇̦̥ͧ̈́ͩͫ̈́ͤa͚ͥi͈̙̙̖̗̎l̟̮̜̟͙̂͂̋̐̿ͬ ͫF̻̜ͨ́̔ͫͤǐ͔͔̖͔̬̀͑ͯ́ͪͅr̪̮e͎͓̯͇̠͕͖ͣ͂̌̀̚f̲͙̯̖̯̾ͯ̋̈́ͯ̚ox̊ͭͬͤ,̖͓̠ͮ̔ͣ̏̃̓ ̖̞͕͊ͪ͒ͦ̃t̬̗̩̰̩ͭͯͨh̰̫͍ͥ̔͛̎́é̩̰̋͊͗ͫ̓ ̾̊͛̀̽̒͋b͕̮̣̻͇͈̭ͤ̉e͍̦̯̝ͩ̈s͖͆͗ͪͧ̌ͯt̬͇ͬ̇ͣ̎͛ͅ ̬̂̓̐b̥̭ͫ̒̒̏r̯̩̼̯̽̓ͤ̐ͩ̚o̬̦̐ͦ̀̓̏̑̈w̘̞͓̟̖͔̬̓s̼̺̍̂ͯe̜ͫ̄̑͆̑̀ͪr̞̝͆̆
2
 
@derobert You're right. I forgot to zap my keyboard with a live wire while I was typing that. And typing this...
 
@Ungeheuer You don't always type with your keyboard sandwiched between a Van de Graaff generator and a spark-gap transmitter? How odd.
 
5:42 PM
writing thinking is hard! I've been meaning to answer fra-san's Meta question for weeks
 
 
2 hours later…
7:39 PM
@JeffSchaller Of course I'm not meaning to put pressure on anyone, but I'd like to see more answers (and more viewpoints) there.
I, too, have been thinking about, and even drafting, an answer to my own question for weeks...
It basically boils down to a theory of two distinct cleanup workflows, an ordinary one and a trusted one. Which sometimes overlap in the LQPQ. But I'm not finding it convincing yet.
 
@fra-san I'm not sure I have a good answer, but I'm afraid of putting it off much longer. There's always editing! I'm a few moments away from posting it.
@fra-san I think part of what's bothering me is that "handling the LQP queue" is tied to "deleting Answers in general". I've mainly answered in the "LQP queue" vein, but it certainly leaves open a thread of "outside of the LQP queue, when should I flag/vote to delete an answer?"
 
8:02 PM
@JeffSchaller I see that you were literally "moments away" from posting. Thank you, I'm reading it.
 
8:40 PM
Category 5 really seems an exercise in question-begging, honestly
If the issue is that "the answerer missed a corner case", nobody's trying to delete it
 
9:34 PM
@MichaelHomer should I expand on that point some more? I intended to address concerns people might have with saying "This look OK!" to an answer that they don't feel is correct or good enough.
 
 
1 hour later…
10:38 PM
I wonder if we need a tag for Pop!_OS; we seem to be gaining questions about it.
 

« first day (3203 days earlier)      last day (1742 days later) »