Question: Assume input file has one word per line. 1a. Write a regular expression (in the format used by awk) that matches only strings that both

Assume input file has one word per line.

1a. Write a regular expression (in the format used by awk) that matches only strings that both start and end with an, and occupy an entire line.

1b. Write an awk script that takes an input file of words and determines the number of words in the file that both start and end with an.

Step by Step Solution

3.38 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Lets tackle each subquestion one by one 1a Regular Expression in AWK Format To create a regular expr... View full answer

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!