Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
title~/.bash_profile
project=project.kyiv.example.example.com
location=kyiv.example.com
domain=example.com
#Clean All
sudo sed -i '/search/d' /etc/resolv.conf
check=`grep "search $project $location $domain" /etc/resolv.conf`
if [ "$check" = "" ]; then echo Adding; echo "search $project $location $domain" |sudo tee -a /etc/resolv.conf; fi