Question: Create a Bash script to identify all ways in which date formats can appear in a text file Requirements 1. Program accepts and reads given

Create a Bash script to identify all ways in which date formats can appear in a text file

Requirements

1. Program accepts and reads given text file

2. Extract dates in text file using regular expression patterns

3. Program displays extracted dates and the total number of extracted dates from the txt file

4. all extracted dates and total number of extracted dates get written out to a dates.txt file, each date adds new line to dates.txt file

EXAMPLES of dates:

March 29, 2001

the 16th of April, 1952 11th of October 1915 April 14, 1917

11th of April

29th of March 1927

November 21st

9th of June, 1989 15th of January

September 7th, 1917 December 3rd April 27, 2019 4th of March 1919 October 9th, 2006 June 17th of '28 February 17, 1938

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 Programming Questions!