Skip to content

Instantly share code, notes, and snippets.

View rahogata's full-sized avatar

Shivakumar K R rahogata

View GitHub Profile
@rahogata
rahogata / tomcat7installer.sh
Last active July 15, 2017 15:31
Install old tomcat7 package in newer ubuntu release 16.04
#!/bin/sh
# Name: tomcat7installer
# Description: This script will install tomcat7 of ubuntu 14 release in 16.04.
# Tomcat ship with or installed in ubuntu 16.04 is incompatible with Java 7,
# so installing old tomcat version will solve this issue that is achievable through this script.
# remove tomcat if already installed.
echo "Removing existing tomcat7..."
sudo service tomcat7 stop >/dev/null 2>&1
@rahogata
rahogata / propertyfileeditor.sh
Last active June 9, 2023 05:06
Shell script to edit properties file interactively, add, update, delete, listing properties supported.
#!/bin/sh
# Name: propertyeditor
# Desc: add,update,delete, list properties interactively
# Args: $1 -> property file to edit.
PATH=/bin:/usr/bin:/usr/local/bin
DEFAULTFILE="$HOME/rahogata.properties"
# ignore signals during file operations