title: How to write a Bash script to edit many text files using the same commands?
body: <p>I'm very new to <code>bash</code>. I have ten text files that I want to edit with the same line of code.</p>
  
  <pre><code>#!/bin/bash
  
  sed -i -e 's/.\{6\}/&amp;\n/g' -e 's/edit/edit2/g' | tr -d "\n" | sed  's/edit2/edit/g'| grep -o "here.*there" | sed -r '/^.{,100}$/d'
  &lt; files 1-10
  </code></pre>
  
  <p>I know I could use <code>sed -f sed.sh &lt;file1 &gt;file1</code> but that only works with sed commands and it only works one file at a time?</p>
  
  <p>Do I have to run a loop?</p>