title: unset all environment variables starting with a leading string while in a script (without closing or restarting bash)
body: <p>I'd like to:</p>
  
  <blockquote>
    <p>unset myvarname*</p>
  </blockquote>
  
  <p>where myvarname is a string and * is... well, you got it.</p>
  
  <p>Tried </p>
  
  <blockquote>
    <p>env | grep string | unset</p>
  </blockquote>
  
  <p>but doesn't work.</p>
  
  <p>I'm into a script and I don't want to start a new shell so no env -i or source something or leaving the reentering the shell</p>
  
  <p>Please help a poor noob</p>
  
  <p>Thanks in advance</p>