Question: UNIX/LINUX USING ONLY SED: Display only the dates, in the format YYYY-MM-DD, from the file. Print only the first occurrence of this pattern on a
UNIX/LINUX
USING ONLY SED: Display only the dates, in the format YYYY-MM-DD, from the file. Print only the first occurrence of this pattern on a line.
file data.txt
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, Anyway the wind blows doesn't really matter to me, to me.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
