1- Use the cat command to create a file. Name of this file should be file1. Type a few sentences in this file. Save this file. Use the cat command one more time to display the content of file1. 2- Use vi command to add more lines to this file so you can answer the rest of these questions that uses regular expressions and grep command. 3- Select the lines from file file1 that have exactly three characters in them. 4- Select the lines from file file1 that have at least three characters in them. 5- Select the lines from file file1 that have three or less characters in them. 6- Select the non-blank lines from the file file1. 7- Select the lines from file file1 that start with a capital letter. 8- Select the lines from file file1 that end with a period. 9- Select the lines from file file1 that have the string unix. 10- Select the lines from file file1 that end with the string unix.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

1- Use the cat command to create a file. Name of this file should be file1. Type a few sentences in
this file. Save this file. Use the cat command one more time to display the content of file1.
2- Use vi command to add more lines to this file so you can answer the rest of these questions that
uses regular expressions and grep command.
3- Select the lines from file file1 that have exactly three characters in them.
4- Select the lines from file file1 that have at least three characters in them.
5- Select the lines from file file1 that have three or less characters in them.
6- Select the non-blank lines from the file file1.
7- Select the lines from file file1 that start with a capital letter.
8- Select the lines from file file1 that end with a period.
9- Select the lines from file file1 that have the string unix.
10- Select the lines from file file1 that end with the string unix.
11- Select the lines from file file1 that have only the string unix.12- Select the lines from file file1 that have the pattern unix at least two times.
13- Select the lines from file file1 that have the pattern unix and ends with unix.
14- Copy file file1 on the screen, but delete the blank lines.
15- Select the lines from file file1 that have a digit.
16- Select the lines from file file1 that have at least two digits without any other characters in
between.

May I get help with this problem, please? Mac terminal/Linux

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education