Question: (UNIX | BASH SCRIPT) In this lab you have to create a script to convert wav audio files into mp3 audio files. This is not

(UNIX | BASH SCRIPT) In this lab you have to create a script to convert wav audio files into mp3 audio files. This is not just changing the file extension but actually converting the audio type. You can use the utility "lame" to convert the files. The command would follow this format "lame -V file.wav new_file.mp3" You will also have to setup cron to run your conversion every 30 minutes. Create the necessary files to do the following:

Have a shell script named "~/Documents/cis90/mp3converter.sh" that uses a for in loop to iterate through your ~/Downloads directory and uses an if statement to determine if a file has a .wav extension and if it does it converts the .wav file to a new file in MP3 format with a .mp3 file extension.

There should be a log file (~/Documents.cis90/convert.log) generated that tracks the file name and date generated

The log should also indicate each time the script was run and the date run

A file (~/Documents/cis90) that has the line from your crontab that will:

run the mp3converter.sh every 30 minutes

Submit those files to this assignment.

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!