title: Iterate through concatenated string with paths - prevent globbing
body: <p>How to loop/iterate through string</p>
  
  <pre><code>exclude_args=''
  exclude='/var/www/bak/*/* /var/test'
  set -- "$exclude"
  shift
  for path; do
    exclude_args="$exclude_args --exclude '$path'"
  done
  echo "$exclude_args"
  </code></pre>
  
  <h1>output</h1>
  
  <pre><code> --exclude '/var/www/bak/*/* /var/test'
  </code></pre>
  
  <p>How to get an output like this</p>
  
  <pre><code> --exclude '/var/www/bak/*/*' --exclude '/var/test'
  </code></pre>