Page 1 of 1

Use the spaces provided to show your complete work (the command you used to accomplish each task and the output from you

Posted: Tue Jul 05, 2022 10:19 am
by answerhappygod
Use the spaces provided to show your complete work (the commandyou used to accomplish each task and the output from your command).Remember, regular expressions are case sensitive unless otherwisespecified.
The directory /home/unix/assets/cwos contains the Complete Worksof Shakespeare, divided into numerous directories and files. Forexample, the Hamlet play is contained in the/home/unix/assets/cwos/hamlet directory.
1. On how many lines does the word prithee occur throughout thecomplete works of Shakespeare? (You’ll probably need to look up howto do recursive searches with grep/egrep)2. The plays are not only divided up into individual acts, but eachplay is also represented as a single file in the full.html files ineach play directory. For example, the hamlet/full.html contains theentire Hamlet play. Some of Shakespeare’s characters appeared inmore than one play. The character of Falstaff appeared in threeplays. Which three? Devise a grep/egrep command thatwill search through all the full.html files for Falstaff. Write thecommand you used and thenames of the plays here.