
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Topic Video
Question
![1. [100] Create a Bash script / Shell script to identify all possible ways in which Date can appear in a document.
Here are the requirements:
a. Your program will accept and read a given text file.
b. It will extract all Dates appearing in the text file using different regular expression patterns.
c. The program will display all the extracted Dates and total number of extracted Dates from the given text file.
d. Write out all the extracted Dates and total number of extracted Dates in a report file. Each Date extraction will add a new line to the report file.](https://content.bartleby.com/qna-images/question/c0093974-81ba-4c50-b818-8764d6710101/4fed13f5-f3dd-428b-b991-bc5c5aecb4ef/apsfq4f_thumbnail.png)
Transcribed Image Text:1. [100] Create a Bash script / Shell script to identify all possible ways in which Date can appear in a document.
Here are the requirements:
a. Your program will accept and read a given text file.
b. It will extract all Dates appearing in the text file using different regular expression patterns.
c. The program will display all the extracted Dates and total number of extracted Dates from the given text file.
d. Write out all the extracted Dates and total number of extracted Dates in a report file. Each Date extraction will add a new line to the report file.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- 1. Write a Python program that allows the user to calculate summary statistics for a maximum of six deliverables of a course. The summary statistics that will be calculated for these deliverables are average, median, highest, lowest, and sample standard deviation. Your program must meet the following requirements: a) Read in the data from a CSV file provided on Canvas. Hint: The file includes row and column headers. Use the example code from class 3/7 to read in a CSV file with headers. b) Minimum requirements are to always ask for 3 assignments – for this, you skip this step. For bonus credit, prompt the user to input the number of assignments to calculate statistics for. In this case you would need to prompt the user for the total number of deliverables for which summary statistics will be calculated. You must verify that the user enters a value that can represent a valid integer number in the range [1, 6]. If the user enters a value that does not represent a number, the user…arrow_forwardPlease answer the following Bash question, please show your output as well. 1. Write a Bash function named ‘Generate-ID' that generates all possible UGA student id start with 900. The output should be saved into a file named studentID.csv. 2. Write a Bash function named ‘Find_word’ that read wordlist.txt file to find all words end with “ing” and output these words to WordEndIng.csv. 3. The auth.log file (path: /var/log/auth.log) and syslog file (path: /var/log/syslog) are two of the most important log files in Linux. Generally, adversaries target these files so that system administrators couldn’t track what attackers are doing. Write a function named get-linuxlog() that reads all the above two files and stores them into a file named linuxeventlog.txt (Hint use the ‘cat’ command)arrow_forwardPlease complete with Python write a program that reads a file containing text. Read each line and send it to the output file, proceded by line numbers. If the input file isMary had a little lambWhole fleece was white as snow.And everywhere that Mary went,The lamb was sure to go! then the program produces the output file|1| Mary had a little lamb|2| Whole fleece was white as snow.|3| And everywhere that Mary went,|4| The lamb was sure to go! Current Code: ### Read a file and save it to a new file with line numbers.# # Read the file names from the user.inputName = input("Enter the input file name: ")outputName = input("Enter the ouput file name: ") # write your code herearrow_forward
- Given the following json file, create a Python program that reads the file and outputs an XML file that groups car data appropriately. { "cars": [ { "make": "Honda", "model": "Accord", "color": "White", "engine": "I4", "transmission": "Automatic", "price": 22756.0 }, { "make": "Chevrolet", "model": "Bolt EV", "color": "Gray", "engine": "Not Specified", "transmission": "Automatic", "price": 39551.0 }, { "make": "Dodge", "model": "Challenger", "color": "Gray", "engine": "V6", "transmission": "Automatic", "price": 32216.0 } ]}arrow_forward1. Read a list of sports teams from a file named "Teams.txt" and store them in a Python list of dictionaries. Teams.txt: New England Patriots, NFL, Football, 6 Super Bowls Los Angeles Lakers, NBA, Basketball, 17 Championships Liverpool FC, Premier League, Soccer, 19 League Titles New York Yankees, MLB, Baseball, 27 World Series Championships Chicago Blackhawks, NHL, Ice Hockey, 6 Stanley Cups Golden State Warriors, NBA, Basketball, 6 NBA Championships 1. Output all the sports teams in your list. 2. Output all teams that belong to the NBA. 3. Output all teams with more than 10 championships or titles. 4. Calculate the average number of championships or titles among all teams in your list. 5. Create a histogram of the sports leagues. Each element in the histogram should represent the count of teams in a specific league. 6. Take all the teams in "Teams.txt" and store them in a Python set of tuples where each tuple represents (team name, sport). 7. Output all unique sports represented…arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education