Learn grep by using it to solve Wordle! Here's one from a few days ago. I have a favorite starting word and I see it has two letters in the wrong position. My wordle-grep cheat sheet (see snapshot) tells me how to build a command line. I build it and… ImageImageImage
…ew, 120 words is way too many. My gf looks over my shoulder saying "what if there's an S at the end?" so I insert a grep command to give me those. Picking through the responses we agree on "farms" and I go for it. As you can see… ImageImage
This time I add "fms" to the wrong letters and I insist on "a" in the second position. I *also* decide to include "i" on a #hunch because it's the next vowel in line. I build the command line and 19 words emerge. I never saw "radio" because "rabid" jumped out at me… ImageImage
So I add "bd" to the wrong letters. I also make sure "r" can't be in the first position and "i" can't be in the fourth position (you'll need another grep if/when letters overlap a position). Then I run the command. It returns three words and we've got three tries… TA DA! ImageImage
Here's another Wordle from a few days ago. I use my favorite starting word to find it has two letters in the correct position and one appears elsewhere. I use my wordle-grep cheat sheet (see snapshot) to build a command line, including the next vowel "i" on a #hunchImageImageImage
My command returns 4 words. Four! We could start at the beginning with "brain" but hey, I like trains! Then my gf says "no no no, use 'drain' instead.' And I'm pretty much like Jules Winnfield: I kinda gotta follow my gf's ideas. We go with "drain" and… ImageImage
Welp, I'm going to win thanks to grep because I've got three words left with three tries left. I tell my gf "you picked 'drain' so I'm picking 'train'" and TA DA! Image
Okay, now let's use hunches with grep to solve what *looks* like a difficult Wordle. Again I use my favorite starting word and … 🤔. I use my wordle-grep cheat sheet (see snapshot) to build a command line. On a #hunch I include vowels "i" & "o" with an "s" at the end… ImageImageImage
My command line returns four words. Perusing the list I settle on "lions" and my hunch begins to pay off!

I add "io" to the wrong letters. Of course "l" and "s" need attention. But I definitely need a vowel so I trial-case "u" vs. "y" in different command lines and… ImageImageImage
"y" returns nothing while "u" returns two words. I choose the first word, "slung," to learn more about where the letters "lsu" don't belong — and TA DA!

🥴 Stupid me: having isolated the solution to one vowel, my hunch *should* be "it's one of these two words." Image
So, that's how you can learn grep by using it to solve Wordle! See also blog.gravitywall.net/2022/02/17/sol… for a great blog on using grep in Wordle.

PS: you can shorten command lines by storing five-letter words in a new file (see snapshot). Enjoy! Image

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with ⚡ Rob Rosenberger and 3,514 others

⚡ Rob Rosenberger and 3,514 others Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @rsnbrgr

Jul 16
I weep over this headline 😓 but let's acknowledge three key facts:

1️⃣ UK nabbed HK in the First Opium War 😵‍💫 and ruled it like a typical white imperialist

2️⃣ Japan nabbed HK on Pearl Harbor Day and treated dogs w/ higher standing

3️⃣ UK loosened the collar in…
…the 1970s when the rebound effect from the U.S. Civil Rights Movement seeped into imperialist nations' territories.¹

First-world college students don't learn about HK's societal…
_____
¹ study 40yr-old U.S. military theses to "appreciate" 😳 the recent history of imperialism
…standing 25yrs post-WWII because it's DISGUSTING and "certainly not fit for undergrads."

In a nutshell: HK's 1970s industrialization proved so good that London dropped their leash and let HK roam free inside their dog park.²
_____
² yep, another reference to HK as dogs 😑
Read 4 tweets
Apr 18
80 years ago today, the #DoolittleRaiders took revenge for the #PearlHarbor attack.

One aircrew landed in Russia to avoid falling into Japanese hands and spent 13 months interned.

This is the original carbon copy of their [now de]classified interrogation on 3 June 1943:
1/8
80 years ago today, the #DoolittleRaiders took revenge for the #PearlHarbor attack.

One aircrew landed in Russia to avoid falling into Japanese hands and spent 13 months interned.

This is the original carbon copy of their [now de]classified interrogation on 3 June 1943:
2/8
80 years ago today, the #DoolittleRaiders took revenge for the #PearlHarbor attack.

One aircrew landed in Russia to avoid falling into Japanese hands and spent 13 months interned.

This is the original carbon copy of their [now de]classified interrogation on 3 June 1943:
3/8
Read 8 tweets
Dec 9, 2021
@Doctrine_Man I'm going to seriously oversimplify when I say "China's nat'l psychology has the unique advantage of communications technology to leap over what other first-world nations needed in terms of time."

So let's delve in.

US & China both emerged from an agricultural society to...
@Doctrine_Man become an industrialized society. We led the world thanks to acreage & raw minerals, and of course two world wsrs that consumed faster than we could produce.

By the 1970s we shifted to a service-based economy, similar to England's in the early 1800s, less than a hundred years...
@Doctrine_Man after they created street lamps to provide cities with nighttime maneuverability. (You'll think "Jack The Ripper" here but it's really more like Scrooge throwing a coin at a boy to get him some food.)

England's middle class, such as it was, enjoyed & paid for services...
Read 9 tweets
Nov 12, 2020
@imaguid @SwiftOnSecurity So here's my story about the "Killdozer" movie

It came out 5 years before I learned to drive but it would pop back into Chicago's "grindhouse" movie theaters every so often

It did so in 1979 when @RickTrnka & I were in junior year

We're sitting at lunch when
@imaguid @SwiftOnSecurity @RickTrnka both of us realize we've got substitute teachers for the last two classes that Friday

Rick & I had a rule: we'd only ditch on a Friday for a *really* bad movie, because our detentions had to be "worth it"

"Wow, four subs between us! It's a sign from heaven! We gotta ditch!"
@imaguid @SwiftOnSecurity @RickTrnka So we ditched

I think we paid $1.50 each to see it

Back then we had no truant officers because Bolingbrook was on its final year of "45-15 track" where students get 45 days on, 15 days off of a full yearly schedule

No one cared thay we walked into a bad movie
Read 5 tweets
Nov 3, 2020
1/12
It's election day and heaven knows we all need a good laugh, right?

Here's a story about President Clinton, Air Force One...

...and two nervous USAF air traffic controllers!
2/12
Let me begin this story by stating I'm a retired Air Force Enlisted Historian (AFSC 3H091) and I was assigned to the Air Force base in question and I interviewed one of the two air traffic controllers involved in this story.

Okay ... let's get into it!
3/12
It's the 1990s. President Clinton has flown to St. Louis in Air Force One ("AF1") and he's got an identical VC-25 aircraft just in case AF1 breaks down. Let's call it "AF1-Alt." It's sitting quietly across the river on the tarmac at Scott AFB, Illinois.
Read 12 tweets
Jun 4, 2020
Following on Andy's comment (below)...

1/11
In the spring of 1995 I had some Illinois Veterans Grant left and I decided to take a certain philosophy course. My military supervisor adjusted my lunch schedule.

On day 1 the prof asks everyone to introduce themselves...
2/11 I'm pondering my one-minute intro when a young man unloads on the class:

"My name is {name} and I'm {age} and I'm taking this class because my degree requires it and I don't even know why I'm here 'cuz all this 'deep thought' is just a waste of my time blah blah blah"...
3/11 This jerk has the class stunned

I shift gears immediately

Mind you, I'M IN UNIFORM

It finally gets around to me

"My name is Rob and I'm 32 and I want to tell that idiot over there <pointing> that I know for a fact I DON'T KNOW SHIT AT MY AGE!"
Read 13 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(