Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Create a new file called fruit.basket: Fred apples 20 Susy oranges 5 Mark watermellons 12 Robert pears 4 Terry oranges 9 Lisa peaches 7

1. Create a new file called fruit.basket: Fred apples 20 Susy oranges 5 Mark watermellons 12 Robert pears 4 Terry oranges 9 Lisa peaches 7 Susy oranges 12 Mark grapes 39 Anne mangoes 7 Greg pineapples 3 Oliver rockmellons 2 Betty limes 14

Use GREP to answer all of the questions below:

2. I want to identify every line which contained the string mellon

Q1: What command should I use? Enter the command in your VM - what is the output?

2. I want to also print out the line numbers associated with each match.

Q2: What option do I add? Enter the command - what is the output?

3. Now I only want to know how many matches are made.

Q3: What command option do I use? Enter the command - what is the output?

4. What if I want to identify rows that have two or more consecutive vowels in a string?

Q4: What command would you use? Enter the command - what is the output?

5. Now, I want only those rows that contain is or go or or

Q5: What command would you use? Enter the command - what is the output?

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

Intelligent Information And Database Systems 6th Asian Conference Aciids 2014 Bangkok Thailand April 7 9 2014 Proceedings Part I 9 2014 Proceedings Part 1 Lnai 8397

Authors: Ngoc-Thanh Nguyen ,Boonwat Attachoo ,Bogdan Trawinski ,Kulwadee Somboonviwat

2014th Edition

3319054759, 978-3319054759

More Books

Students also viewed these Databases questions

Question

2. What should an employer do when facing an OSHA inspection?

Answered: 1 week ago