Question 1 5 Pts Match Unix Linux Command Description Man Filters Duplicatel Grep Enables Q43906584
Question 1 5 pts Match the UNIX/Linux command to its description man Filters out duplicatel grep enables manual comr- cut Takes a string of char, echo Extracts data from w cat Takes a string of char Wc [Choose] uniq [Choose ] $ Question 2 5 pts The contents of the letc/os-release file from general.asu.edu are given below. Write a command that will display the contents of the PRETTY_NAME field with or without quotes. A complete solution will not contain the ‘PRETTY_PRINT field name, only the value portion of the line. letc/os-release NAME=”Red Hat Enterprise Linux Server” VERSION=”7.6 (Maipo)” ID=”rhel” ID_LIKE=”fedora” VARIANT=”Server” VARIANT_ID=”server” VERSION_ID=”7.6″ PRETTY_NAME=”Red Hat Enterprise Linux Server 7.6 (Maipo)” ANSI_COLOR=”0;31″ CPE_NAME=”cpe:/o:redhat: enterprise_linux:7.6:GA:Server” HOME_URL=”https://www.redhat.com/” BUG_REPORT_URL=”https://bugzilla.redhat.com/” REDHAT_BUGZILLA_PRODUCT=”Red Hat Enterprise Linux 7″ REDHAT_BUGZILLA_PRODUCT_VERSION=7.6 REDHAT_SUPPORT_PRODUCT=”Red Hat Enterprise Linux” REDHAT_SUPPORT_PRODUCT_VERSION=”7.6″ NOTE: Use the existing letc/os-release file on your chosen Linux environment. Question 3 20 pts Given the contents of the receipt.txt file; write a series of piped commands that will read the file and output a count of the number of lines that contain a negative number. receipt.txt Burrito Shack 5663 S Power Rd, Mesa, AZ 85212 (480) 988-6017 + Thw Works Burrito + Drink ASU discount TAX (7.5%) TOTAL $10.00 1.50 -2.00 0.72 10.22 CASH CHANGE DUE THANK YOU! $20.00 $9.78 TIP: A correct solution would return 1; the line containing the ASU discount of -2.00 Given the contents of flights.txt print the flight# of all flights departing from ONT on MONDAY Your solution must be implemented using a single regular expression. flights.txt Flight# Airline Depart Arrive Day TEAM GE LOGI 93104 62876 30118 12033 40990 92377 ONT NYC ONT LAX PHX ONT LAX MONDAY ONT THURSDAY PHX FRIDAY PHX MONDAY ONT MONDAY PHX SUNDAY ACTI EA HINT: You will need to use cut at some point HINT2: The correct output is “93104” Show transcribed image text Question 1 5 pts Match the UNIX/Linux command to its description man Filters out duplicatel grep enables manual comr- cut Takes a string of char, echo Extracts data from w cat Takes a string of char Wc [Choose] uniq [Choose ] $
Question 2 5 pts The contents of the letc/os-release file from general.asu.edu are given below. Write a command that will display the contents of the PRETTY_NAME field with or without quotes. A complete solution will not contain the ‘PRETTY_PRINT field name, only the value portion of the line. letc/os-release NAME=”Red Hat Enterprise Linux Server” VERSION=”7.6 (Maipo)” ID=”rhel” ID_LIKE=”fedora” VARIANT=”Server” VARIANT_ID=”server” VERSION_ID=”7.6″ PRETTY_NAME=”Red Hat Enterprise Linux Server 7.6 (Maipo)” ANSI_COLOR=”0;31″ CPE_NAME=”cpe:/o:redhat: enterprise_linux:7.6:GA:Server” HOME_URL=”https://www.redhat.com/” BUG_REPORT_URL=”https://bugzilla.redhat.com/” REDHAT_BUGZILLA_PRODUCT=”Red Hat Enterprise Linux 7″ REDHAT_BUGZILLA_PRODUCT_VERSION=7.6 REDHAT_SUPPORT_PRODUCT=”Red Hat Enterprise Linux” REDHAT_SUPPORT_PRODUCT_VERSION=”7.6″ NOTE: Use the existing letc/os-release file on your chosen Linux environment.
Question 3 20 pts Given the contents of the receipt.txt file; write a series of piped commands that will read the file and output a count of the number of lines that contain a negative number. receipt.txt Burrito Shack 5663 S Power Rd, Mesa, AZ 85212 (480) 988-6017 + Thw Works Burrito + Drink ASU discount TAX (7.5%) TOTAL $10.00 1.50 -2.00 0.72 10.22 CASH CHANGE DUE THANK YOU! $20.00 $9.78 TIP: A correct solution would return 1; the line containing the ASU discount of -2.00
Given the contents of flights.txt print the flight# of all flights departing from ONT on MONDAY Your solution must be implemented using a single regular expression. flights.txt Flight# Airline Depart Arrive Day TEAM GE LOGI 93104 62876 30118 12033 40990 92377 ONT NYC ONT LAX PHX ONT LAX MONDAY ONT THURSDAY PHX FRIDAY PHX MONDAY ONT MONDAY PHX SUNDAY ACTI EA HINT: You will need to use cut at some point HINT2: The correct output is “93104”
Expert Answer
Answer to Question 1 5 pts Match the UNIX/Linux command to its description man Filters out duplicatel grep enables manual comr- cu…
OR