Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Regular expression question in Linux (Only write the regular expression. Do not include the egrep command and do not enclose it in single or double

Regular expression question in Linux (Only write the regular expression. Do not include the egrep command and do not enclose it in single or double quotes.):

1. Write a regular expression that you could use with egrep that will match all lines that contain an open parenthesis. Only write the regular expression. Do not include the egrep command and do not enclose it in single or double quotes.

2. Write a regular expression that you could use with egrep that will match all lines that contain an assignment statement of the form variable = value where value is a numeric value and variable is made up of only uppercase or lowercase letters.

3. Write a regular expression that you could use with egrep that will match all sentences that contain at least three words separated by a space. Assume words only contain alphabetic characters. Use the :alpha: class where appropriate.

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

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions