Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project #6 Perl This assignment has two parts. Each part must be done using Perl. Part A - find.pl Create the script find.pl which searches

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Project #6 Perl This assignment has two parts. Each part must be done using Perl. Part A - find.pl Create the script find.pl which searches for files in a directory list based on a regular expression pattern: If the file name matches, print that file name If the file name doesn't match, it should look for instances of the regular expression within the text of the file. If found, it should print the filename, a colon, and the text for the first line that contained that pattern. If the -i option is passed, the script should return the opposite files (i.e, those which do not match the expression in file name or contents). The script should be invoked with the following format: find.pl -i perLRegexpPattern ListofFiles where -i is optional. Example data is located in/usr/local/courses/rslavin/cs3423/2018Sp/assignment6/ For part A, copy those into a directory named "DataA" Example: For a directory, DataA, containing the following files: input.txt projPer11.input projz.cprojz.h proj1.cproj1. proj12.c projPer11.p trash.txt

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

Logic In Databases International Workshop Lid 96 San Miniato Italy July 1 2 1996 Proceedings Lncs 1154

Authors: Dino Pedreschi ,Carlo Zaniolo

1st Edition

3540618147, 978-3540618140

More Books

Students also viewed these Databases questions