#!/bin/bash if [ ! -z $new_loopback ]; then sed -ie '/^LOOPBACK=.*/d' /etc/environment echo "LOOPBACK=$new_loopback" >>/etc/environment fi