Computing.Net > Forums > Unix > Combining multiple output

Combining multiple output

Reply to Message Icon

Original Message
Name: Tredecim
Date: July 21, 2008 at 04:43:08 Pacific
Subject: Combining multiple output
OS: Solaris
CPU/Ram: SPARC
Model/Manufacturer: sun
Comment:

Hi,

I need a way to compare the number of lines in files between multiple locations.

So I have three locations and their file names :

a: /input (<file_name>.txt.in)
b: /processed (<file_name>.txt.sav)
c: /error (<file_name>.txt.err)

What I want is a wc -l of all the three locations and then combine them into one line per file

So the needed output :

<file_name>.txt <nr_in> <nr_sav> <nr_err>
<file_name>.txt <nr_in> <nr_sav> <nr_err>
<file_name>.txt <nr_in> <nr_sav> <nr_err>
etc

thanks


Report Offensive Message For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Combining multiple output

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software