This script uses awk to summarize book sales data from a pipe-delimited file. It prints the book name, price, and an offer (Buy1Get2 for prices over 750, 100RsCashback for prices between 500-750, or FreeDelivery for lower prices). Total sales are also calculated.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
1K views1 page
Mock Pra 1 Solution Unix
This script uses awk to summarize book sales data from a pipe-delimited file. It prints the book name, price, and an offer (Buy1Get2 for prices over 750, 100RsCashback for prices between 500-750, or FreeDelivery for lower prices). Total sales are also calculated.