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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply