title: Syntax error near unexpected token « done »
body: <p>error    </p>
  
  <pre><code>m2tsac3.sh: ligne9: Syntax error near unexpected token « done »
  m2tsac3.sh: ligne9: `           done'
  </code></pre>
  
  <p>script </p>
  
  <pre><code>#!/bin/bash 
  
   find . -name "*.m2ts" | while read line
             do
               name="$(basename "${line}" .m2ts)"
               echo "${name}"
               ffmpeg -i "${name}".m2ts  -map 0:1 -acodec ac3 "${name}".ac3 
  
             done
  </code></pre>
  
  <p>hello i have an syntax error </p>
  
  <p>the script is to extract audio from m2ts file to AC3 for all the m2ts file from folder</p>
  
  <p>thank you in advance</p>