Question: Using the sed editor use data.txt file for input (UNIX) data.txt file: Period . Period . Question? Question? Jan 2 is Mary's birthday and is
Using the sed editor use data.txt file for input (UNIX)
data.txt file:
Period . Period . Question? Question? Jan 2 is Mary's birthday and is 2010-01-13 and ccs@yy3.com is her email and Feb 18 is Amy's birthday and her email is abc@yy2.com An invalid date is 201-01-01 Another invalid date is 2013-01 Good dates are 1999-01-22, 1998-02-05 and 1993-02-01 bad email bad@badone "Bohemian Rhapsody" Is this the real life? Is this just fantasy? Caught in a landslide, No escape from reality. Open your eyes, Look up to the skies and see, I'm just a poor boy, I need no sympathy, Because I'm easy come, easy go, Little high, little low, Anyway the wind blows doesn't really matter to me, to me.
1. Change the file to replace periods at the end of a sentence with exclamation points.
Replace every occurrence of the word 'me' with 'you', but be sure that replace is not case sensitive.
Display only the dates, in the format YYYY-MM-DD, from the file. Print only the first occurrence of this pattern on a line.
Display email addresses, formatted as xxx@xxx.xxx, from the entire file. You only need to pull one per line.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
