Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!