Shell script to mail script output in table format : <p>I am new to shell script. I need your help on below scenario.</p>

<p>Script: wc file1 file2 file3 file4</p>

<pre><code>results :
1488 2977 2248 file1
123  345 657 file2
123 896 456 file3
567 987 124 file4
</code></pre>

<p>Now I need to mail this result in below format with header name</p>

<p>Here,2nd column is always default value.</p>

<pre><code>Filename  Destname rowcount  bytesize
file1     default  1488    2248
file2     default  123     657
file3     default  123     456
file4     default  567     124
</code></pre>

<p>Please some one help me to write this script.</p>
