Problem I have a text file with the following three line pattern with blank lines in between. My script sorts […]
Tag: bash
Bash script – automate an upload image + description process on a server
Problem I was tasked at work to improve a system where through a web interface a client, which eventually became […]
Bash script (to be used as a login MOTD message) that displays status of docker-compose projects, and individual docker containers
Problem This is for a cheap VPS I use for personal projects. I like having a message of the day […]
Improve a script to generally check status of several git repos
Problem I’ve tried to write a bash script that gives me a general overview of the status of git repos […]
File generator in shell script
Problem I’m a student, and most of my lab work includes writing programs (usually .cpp) run them, copy the source […]
Install, configure, and maintain content for Ubuntu webserver
Problem I made a script for my Ubuntu server(s) running on Google Cloud Platform. The idea behind it is I […]
Calling a script with a setuid set
Problem I wanted to launch a bash script (read: bash not sh script) as a root not as the user […]
To print asterisks based on inputs
Problem I have to print the number of stars that increases on each line from the minimum number until it […]
Colour message prettifier in Bash
Problem Features: messages formatted with clear borders errors sent to stderr colour handling colours can be included in other strings […]
Script to toggle touchpad
Problem This sequence properly shows whether the TouchpadOff option for synclient is on or not (outputs either a 0 or […]