Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can someone help me with this regular expression problem for my system level pro

ID: 3668925 • Letter: C

Question

Can someone help me with this regular expression problem for my system level programming class (using Unix operating system)? I solve the first one using the command egrep 'Jabberwock' Jabberwocky.txt (last image below using PuTTy an open source software). I need help with 2-7. Thanks

Design a simple pipeline of commands that will match the following outputs. A correct answer will match the output exactly an incorrect answer will not.
Possible commands you may want to look at: cat, more, less, grep, fgrep, egrep
You may also want to look at file i/o redirection with > and <
You can have multiple simple regex expressions in a pipeline chain instead of one all encompassing regex to accomplish a task. There are many possible solutions.

Jabberwocky "Beware the Jabberwock, my son! The Jabberwock, with eyes of flame, "And hast thou slain the Jabberwock? 2 And, as in uffish thought he stooc, The Jabberwock, with eyes of flame, Came whiffling through the tulgey wood He left it dead, and with its head 3 BY LEWIS CARROLL So rested he by the Tumtum tree 4 Jabberwocky BY LEWIS CARROLL 'Twas brillig, and the slithy toves All mimsy were the borogoves, "Beware the Jabberwock, my son! Beware the Jubjub bird, and shun He took his vorpal sword in hand; So rested he by the Tumtum tree And, as in uffish thought he stooc, Came whiffling through the tulgey wood One, two! One, two! And through and through He left it dead, and with its head "And hast thou slain the Jabberwock? O frabjous day! Callooh! Callay!" 'Twas brillig, and the slithy toves All mimsy were the borogoves,

Explanation / Answer

regular expression can be write

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote