Question: Please use Unix shell commands to answer the question use grep ...... for question 6 O Question 6 - 20 marks Write a single command

Please use Unix shell commands to answer the question

use grep ...... for question 6

Please use Unix shell commands to answer the question use grep ......for question 6 O Question 6 - 20 marks Write a single

O Question 6 - 20 marks Write a single command that will find all occurrences of any of the following items contained in any file in the current working directory that ends with the extension .csv. Hint: You'll want to use as part of a regular expression. ERROR### where # is a digit between 0 and 5 O ERROR123 would match ERROR945 would not match ERROR1239 would contain a match the first 8 characters still match!) XXX, XXXX, XXXXX, XXXXXX, XXXXXXX, XXXXXXXX, XXXXXXXXX In other words, between three and nine X characters in a row. o X would not match O XXX would match o XXXXXXXXXX - 10 X characters in a row would contain a match (the first 9 characters still match!) The text ALERT followed by 1 or more of any character that is not X or Y O ALERTA would match O ALERTABC would match o ALERTX would not match O ALERTY would not match ALERTABCX would contain a match (the first 8 characters still match!) o Bonus You do not need to complete this question, it is optional. Question 8 - 20 marks Find a Unix shell command (which we did not cover in-class) that will identify the differences between the contents of two files. What is the command? Explain how the command works using an example

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!