Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

*************(In Unix )********** Given the contents of the receipt.txt file; write a series of piped commands that will read the file and output a count

*************(In Unix )**********

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

Computer Aided Database Design

Authors: Antonio Albano, Valeria De Antonellis, A. Di Leva

1st Edition

0444877355, 978-0444877352

More Books

Students also viewed these Databases questions

Question

2. Give ungraded assignments to encourage exploration.

Answered: 1 week ago