title: indexing data in apache solr using bash script for curl
body: <p>I am again posting the same question. Please help me in this problem.
  Here is the code for the bash script that I have written</p>
  
  <pre><code>declare -i i=1
  for file in searchdumps/*
  do
  echo "indexing $file"
  i=$((i+1))
  curl "'http://localhost:8983/solr/update/extract?literal.id=document$i&amp;uprefix=attr_content&amp;commit=true' -F \"myfile=@/home/test/$file\"" 
  done 
  </code></pre>
  
  <p>the path is correct the command when applied directly works, but when this script is executed there is an error</p>
  
  <blockquote>
    <p>indexing searchdumps/1.pdf curl: (1) Protocol 'http not supported or
    disabled in libcurl</p>
  </blockquote>