Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Mac Terminal Command: Given the contents of the receipt.txt file; write a series of piped commands that will read the file and output a count
Mac Terminal Command:
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 $10.00 + Drink 1.50 ASU discount -2.00 TAX (7.5%) 0.72 TOTAL 10.22 ----------------------------------- CASH $20.00 CHANGE DUE $9.78 THANK-YOU!
TIP: A correct solution would return 1; the line containing the ASU discount of -2.00
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
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