Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Bash script that removes all zero length ordinary files in the current directory by default and other directory if provided as an optional

Write a Bash script that removes all zero length ordinary files in the current directory by default and other directory if provided as an optional argument. Ensure that erroneous directories provided are handled with appropriate error handling and/or messages. Show the output for two scenarios.

Write a Bash script that changes the file extension of all the files in a directory having a certain extension, such as .png or .gif. The script takes two command line arguments: old_extension and new_extension.

Write a Bash script takes as an argument a word for which to seek the definition. The script reads dictionary.txt and then displays the requested definition. If you don't still have a copy of dictionary.txt in your ~/data directory, please ask the instructor for a new one. Display the results of running your script, such as: ./word_def.sh byzantine

Using a Bash script, complete class project 6, option I. Your Bash script may contain other tools, such as awk and sed.

Write a Bash script that searches a directory .Trash and removes files and directories older than 30 days. Show how you would have cron run this script daily.

Write a Bash script that updates the SPY.txt file from Yahoo Finance: http://finance.yahoo.com/q/hp?s=SPY+Historical+Prices . Include in your script comments describing how to have cron run the script daily at a 5:30 PM. Test your crontab entry with any time.

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

1. Communicating courses and programs to employees.

Answered: 1 week ago

Question

6. Testing equipment that will be used in instruction.

Answered: 1 week ago