title: Shell script: Syntax error: Redirection unexpected:what is the alternate of "<<<" in shell?
body: <p>Here is my code:</p>
  
  <pre><code>f="\bkg\inp.txt"
  while IFS='' read -r line || [[ -n "$line" ]]; do
      IFS='|' read -r -a array &lt;&lt;&lt; "$line"
      #echo "${array[0]}"
      if [ "${array[2]}" == "Sangamithra" ]; then
          printf "%s" "${array[2]}|" "${array[1]}|"${array[0]}"
      fi
  
  done &lt; "$f"
  </code></pre>
  
  <p>I know what the error is...
  Since I am new to shell scripting..
  I found the code in stackoverflow where we split a string and put into array - But the <code>&lt;&lt;&lt;</code> part is causing problem showing <code>Syntax error : Redirection unexpected</code>..
  Now wht should be the replacement for  "&lt;&lt;&lt;" in shell script or I have to choose any other way?I am not very much aware of all the syntaxes so could not replace..</p>
  
  <p>Any help is very much appreaciated!!</p>