Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started