by derrida · 12mo ago · 0 comments
I think a beginner could be doing it right but then be told they are wrong as you aren’t evaluating actual commands
Best would be to like actually run it* and then check solutions out with awk that it pattern matches
* aka give me a shell ok worth a try lol xD
Edit: also I was expecting something a bit more challenging (also that is correct) to like exercise the brain for those of us that use shell (this is hacker news) something that takes a few minutes and isn’t just commands used all the time
I prefer that way in theory but a capital "A" is not as quick/easy to type.
> awk '/^laugh/ { print $0 }' night-before-christmas.txt