Question 1 Match the UNIX/Linux command to its description man Filters out duplicate! + grep enables manual comr cut Takes a string of char
Question 1 Match the UNIX/Linux command to its description man Filters out duplicate! + grep enables manual comr cut Takes a string of char * echo Extracts data from w cat WC uniq Takes a string of char [Choose] [Choose] 5 pts Question 2 5 pts The contents of the /etc/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. /etc/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 /etc/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 CASH CHANGE DUE THANK-YOU! $10.00 1.50 -2.00 0.72 10.22 $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 93104 TEAM ONT LAX MONDAY 62876 GE NYC ONT THURSDAY 30118 LOGI ONT PHX FRIDAY 12033 F LAX PHX MONDAY 40990 ACTI PHX ONT MONDAY 92377 EA ONT PHX SUNDAY HINT: You will need to use cut at some point HINT2: The correct output is "93104"
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Lets tackle each question one by one Question 1 Match the UNIXLinux command to its description man E...See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started