Tech172_Wk8_Lab8_v1_Jasmaandip_Singh_Gill_N01461801

pdf

School

Humber College *

*We aren’t endorsed by this school

Course

PYTH101

Subject

Information Systems

Date

Dec 6, 2023

Type

pdf

Pages

5

Uploaded by CaptainRam3552

Report
UNIX System Administration 1 Tech172 Lab #9. Page 1 of 5 Lab 8 Marks = 10 Marks Student: Jasmaandip Singh Gill _ Due Date: Week 8 References: Textbook, Lecture notes. Special Instructions: 1. This assignment should be completed individually by all the students. . 2. Take screen capture of the command & output and past it in this document. Exercise #1. 1- Create file data and save the following information: plym fury 77 73 2500 chevy nova 79 60 3000 ford mustang 65 45 17000 volvo gl 78 102 9850 ford ltd 83 15 10500 Chevy nova 80 50 3500 fiat 600 65 115 450 honda accord 81 30 6000 ford thundbd 84 10 17000 toyota tercel 82 180 750 chevy impala 65 85 1550 ford bronco 83 25 9525 2- Execute the following command to get the output: grep -n "50$" data
UNIX System Administration 1 Tech172 Lab #9. Page 2 of 5 grep -n "^f[oi]" data grep -En " [6-7][0-9] " data sed ‘3,5 d’ data Sed ‘2 q’ data
UNIX System Administration 1 Tech172 Lab #9. Page 3 of 5 3- Using grep command to write a regular expression to extract the values from last column between 1000 to 5000. 4- Write the awk command to display the 3 rd and 1 st fields of all lines that contain the string “ ford ” in the file data 5- Using the vi command you would use to replace all occurrences of “ford” with “BMW”
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
UNIX System Administration 1 Tech172 Lab #9. Page 4 of 5
UNIX System Administration 1 Tech172 Lab #9. Page 5 of 5