title: How to Run Multiple Time Same Code in Bash
body: <p>How can i run multiple times this same code? For example 12 times?</p>
  
  <pre><code> sed -n 1,1p 00-02.txt | sed -e 's/^/&lt;video length="-1" src="mp4:/' \
                            -e 's/$/" start="0"&gt;&lt;\/video&gt;/' &gt;&gt;playlist.txt
  
      echo -e "$(sed -e '1,1d' 00-02.txt)\n" &gt; 00-02.txt
  
      cat 00-02.txt | sed '/^$/d' &gt;&gt; 00-02a.txt
  
      rm 00-02.txt
  
      mv 00-02a.txt 00-02.txt
  
      sed -n 1,1p spot.txt | sed -e 's/^/&lt;video length="-1" src="mp4:/' \
                            -e 's/$/" start="0"&gt;&lt;\/video&gt;/' &gt;&gt;playlist.txt
  
      echo -e "$(sed -e '1,1d' spot.txt)\n" &gt; spot.txt
  
      cat spot.txt | sed '/^$/d' &gt;&gt; spota.txt
  
      rm spot.txt
  
  mv spota.txt spot.txt
  </code></pre>
  
  <p><strong>All the code belove</strong> must be <strong>replicated N times</strong></p>
  
  <p>something like </p>
  
  <pre><code>for n in {1..12}; **ALL THE COMMANDS BELOVE**; done
  </code></pre>
  
  <p>But it does not work for multiple lines of command.</p>
  
  <p>Any issue?</p>