Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Database And Knowledge Base Systems

Authors: S Krishna

1st Edition

9810206208, 978-9810206208

More Books

Students also viewed these Databases questions

Question

1. Identify and control your anxieties

Answered: 1 week ago