Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Linux (bash): Write a script called apple.bash that takes one command line argument, the three letter abbreviation for the month and extracts the closing

Using Linux (bash):

Write a script called apple.bash that takes one command line argument, the three letter abbreviation for the month and extracts the closing Apple stock price (the first number after the abbreviation aapl for that date) for all dates (in both years). Hint: Use a grep command to extract the Apple stock line from every file whose name matches a wildcard pattern that includes the month passed into the script. Then pipe the output of grep through two colrm commands to remove all of the characters before and after the first price. Note that the stock files are in the subdirectory stock_data of your ~/homeworks/homework2 directory.

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

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

More Books

Students also viewed these Databases questions

Question

2. Show the trainees how to do it without saying anything.

Answered: 1 week ago