Collection of shell scripts and templates for quick reference
- Write a shell script to find and kill all the zombie processes
- Find the first 10 biggest files in the filesystems and write the output to a file
- Shell script to gracefully unmount a disk
- Shell script to send email
- Shell script to monitor CPU, Memory and Disk Usage and send the output to a file in table format
- Shell script to find the files created and its sizes. It should accept the number of days as input, or a from and to date formats as inputs.
- Shell script to get a list of users logged in by date and write it to an output file
- Shell script to copy files recursively to remote hosts
- Shell script that displays the number of failed login attempts by IP address and location
- Shell script to parse a log file and forward a specific value with a timestamp to an output file
- Shell script to reverse a string
- Parse a login desired format and find all occurence of a word
- Shell script to send first ten lines of a file to another file
- Merge two files and write the output to the third file
- Find all duplicate strings in a file and replace it with another string
- Find all the IP address from a log file and write it to another file
- Get a list of apis from the text file, ping each api. If 200 OK, move on. Otherwise catch any error and move on (See if this is possible in shell scripting)