Question: Needs to be solved for UNIX. Image fixed Homework 4 For this homework, you'll be creating two pipelines and two simple scripts. The pipelines will

Needs to be solved for UNIX. Image fixed

Needs to be solved for UNIX. Image fixed Homework 4 For this

Homework 4 For this homework, you'll be creating two pipelines and two simple scripts. The pipelines will use a copy of the RSS feed from the arXiv's computer-science section; you can get a copy by running wget http://export.arxiv.org/rss/cs. Pipelines While there are only two pipelines, they may be tricky to build; remember that you can build them in stages, and that you can test the partially-built pipelines to see what they're doing. 1. Write a pipeline to print out the article descriptions. You might go about this by first replacing every line with an in it with a blank line, and then using collapsing runs of adjacent blank lines. 2. Write a pipeline to print all the article titles. You'll need to first get lines with a

tag, then you'll need to remove the and the (DOI information) in (parens) at the end. So, this line: <title>Self-Attentive Associative Memory. (arXiv:2002.03519v2 [cs.LG] UPDATED) Should be output like this: Self-Attentive Associative Memory. Scripts 3. Write a script to count down from 5 to 1, print Blastoff!, and set a successful return status. 4. Write a script to count down from 5 to 3, print "Oh, the humanity!", and then return an error. 5. Write a script to print the titles in the current arXiv RSS feed. (Hint: you can do this by downloading the arXiv feed with wget, running your pipeline from before, and then removing the file you downloaded with rm.) 6. Modify your previous script so that it exits with an error code if the download fails. (Hint: use ID. Turn-In Put your pipelines in a file called pipelines.txt, and put each script in its own file (named script_i.sh, where i is the problem number). Then, put them in a tarchive together and submit it

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!