Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Web Database Development Step By Step

Authors: Jim Buyens

1st Edition

0735609667, 978-0735609662

More Books

Students also viewed these Databases questions

Question

=+ (a) Show that A,(i) is trifling.

Answered: 1 week ago