Question: Please make a perl script, searchtwo.pl , that will search a given data file for a given pattern. Both the search pattern and the search
- Please make a perlscript, searchtwo.pl, that will search a given data file for a given pattern. Both the search pattern and the search file name should be obtained from the prompted inputs as the examples shown below (Lab 9 questions 4 and 5):
$ ./searchtwo.pl
Enter a data file name: /etc/services
Enter a search pattern: pop
$ ./searchtwo.pl
Enter a data file name: /etc/shells
Enter a search pattern: bash
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
