Problem First, the script checks to see if it is installing two kernel module packages or removing them by looking […]
Category: Bash
Compare all files to each other
Problem I will start by saying I have gotten this to work, and the question is about how improve the […]
Shell script that verifies checksums when moving between filesystems
Problem I coded this because it seemed like a fun project, would be awesome if someone reviewed this. Thanks! #! […]
To calculate the total CPU usage as a percentage
Problem I have been developing the below method to calculate the CPU usage of a Linux system at a point […]
Read group of keywords from file, modify value, store new group to variable
Problem I would like to use the following routine in my submission script for GAMESS calculations. I am not entirely […]
Bash CGI Upload File
Problem I’m using the following Bash CGI to upload a file: #!/bin/bash echo “Content-Type: text/plain” echo if [ “$REQUEST_METHOD” = […]
Bash Script – batch rename files in current directory with preview
Problem I have written the following script to automate my frequent usage of rename. This saves me from always typing […]
Making a disk usage breakdown
Problem I’m looking for a better way of doing this code I made. I work for tech support and one […]
Parsing logs in sed efficiently
Problem I have an application which log file has most lines start with a time/date, followed by a debugging level […]
Updating an Nginx config file for SSL
Problem This script updates a settings in ssl config file for Nginx. I generate DHEC key and then update the […]