Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 07 (5 points) Write a single RegEx to match all of the items that you have enough rupees for Input file (hw0207.txt) Expected output

Task 07 (5 points)

Write a single RegEx to match all of the items that you have enough rupees for

Input file (hw0207.txt)

Expected output of script

item cost

lamp oil 5

rope 10

bombs 20

lamp oil 5

rope 10

Note: You only have 12 rupees, if you want to buy anything more youll need to be a little richer

Task 08 (5 points)

Write a single RegEx to match every date except my dogs birthday

Input file (hw0208.txt)

Expected output of script

1991 January 25

1993 February 28

1994 December 21

1995 May 17

1996 January 30

1999 June 14

2002 August 6

2005 July 19

2009 August 5

2010 August 24

1991 January 25

1993 February 28

1994 December 21

1995 May 17

1996 January 30

1999 June 14

2002 August 6

2009 August 5

2010 August 24

Task 09 (5 points)

Write a love poem with sed

Input file (hw0209.txt)

Expected output of script

Roses are red

Roses are yellow

Violets are violet

My dog is violet

Violets are blue

Sugar is bad for you

Sugar is violet

Sugar is sweet

I have the flu

You were my brother, Anakin

I loved you

And so are you

And you are blue

And who are you

Roses are red

Violets are blue

Sugar is sweet

And so are you

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

Creating A Database In Filemaker Pro Visual QuickProject Guide

Authors: Steven A. Schwartz

1st Edition

0321321219, 978-0321321213

More Books

Students also viewed these Databases questions

Question

6. Does your speech have a clear and logical structure?

Answered: 1 week ago