sed search for line and remove the first character of the following ten lines : <p>I have a file with links in it. the links are commented out. I would like to use sed or awk to search for a specific string and then remove the first character of the following ten lines. </p>

<p>As far as I know, I can search with sed in the following way</p>

<pre><code>sed -n '/StringToSearchFor/p' file
</code></pre>

<p>With awk I would write the following</p>

<pre><code>awk '/pattern/ {print $1}'
</code></pre>

<p>But how could I delete the first character of the following ten lines?</p>

<p>The manual page of sed and awk are a huge. So please do not point to them beside you have a search string for me.</p>

<p>Thanks in advance.</p>
