Question: Write a perl script, searchone.pl, that will search a given data file for a given pattern. Both the search pattern and the search file name
Write a perl script, searchone.pl, that will search a given data file for a given pattern.
Both the search pattern and the search file name should be provided from the command line as follow:
./searchone.pl search-file search-pattern
$ ./searchone.pl /etc/services pop
$ ./searchone.pl /etc/services imap
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
