Create Bash Script Using Regular Expressions Grep Output Words Within File Contain Certain Q37178507

Create a bash script using regular expressions and grep thatwill output only words within a file that contain a certain patternof letters. The word can have other letters in between the letterspassed in. For example, if “ae” is passed to the script, only wordsthat contain a then e will appear.

A pattern could look anything like the below:

a___e___

ae_____

___a__e___

_a_e_____

______ae_

etc.


Answer


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.