Problem I have a specs file: Name: program Version: 2.3.3 Release: 0 … I want to update the version number […]
Tag: sed
sed to fix a messy nginx.conf
Problem I have a few servers to fix that repeatedly get their nginx.conf file messed up due to a rogue […]
Bash Shell Script uses Sed to create and insert multiple lines after a particular line in an existing file
Problem This code seems to work, but I’d like someone with shell-fu to review it. Is the temp file a […]
CGI for htpasswd registration
Problem I decided to go with a very simple CGI user registration program to pair with Apache’s mod_auth_form wrapper around […]
CGI for htpasswd registration
Problem I decided to go with a very simple CGI user registration program to pair with Apache’s mod_auth_form wrapper around […]
Adding a zero to file names
Problem I’ve recently discovered the power of sed; regular expressions seem like they’ll take a lifetime to master. This tiny […]
Add getters and setters to a set of variables [closed]
Problem Closed. This question is off-topic. It is not currently accepting answers. Questions must involve real code that you own […]
Bash script to clone directory structure with renaming
Problem I’ve written a script to aid in creating new watchfaces for the awesome AsteroidOS project. A watchface there typically […]
Changing filename and copying in bash
Problem I wrote a script which changes names of last downloaded songs and copy them to music directory. Can it […]
Loading a file in vim via piped output of ag
Problem I feel as if my scenario is fairly simple but that I might be overcomplicating it. I am searching […]