title: Replacing IP with current ip recursively
body: <p>I have folders with <code>.env</code> file in each of them</p>
  
  <pre><code>Folder1
    .env
  Folder2
    .env
  Folder3
    .env
  Folder4
    .env
  </code></pre>
  
  <p>.env file have </p>
  
  <pre><code>IP_ADDRESS=192.168.1.132
  </code></pre>
  
  <p>I wan to change IP of .env with current Local IP.</p>
  
  <pre><code>CurrentIP=`ifconfig | grep inet | awk '{ print $2 }' | grep -E '(192)\.(168)(\.[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]){2}'`
  
  echo 'Assiged IP' $CurrentIP
  
  find ./ -name '.env' -type f -exec sed -i '' -e "s/([0-9]{1,3}[.]){3}[0-9]{1,3})/$CurrentIP/" {} \;
  </code></pre>
  
  <p>it doesn't seems to working, What's going wrong.</p>