Appending text in a file using unix

February 6, 2011 at 03:05:02
Specs: Windows XP
actually, i have to grep the value of cpu usage from six differrent servers and it has to generated in a single report( in a single text or excel file). i have used the below command for grepping the value.

top -n 1 > arun.txt

cat arun.txt | grep 'init' | cut -c 49-53 > output1.csv

like this i have collected cpu usage from six diffrent servers and saved in a six different excel sheets.

then i copied those six excel sheets to single server using scp command.

now i need this all six values to be with in a single file.

can anyone help me out???

or is there anyway to handle this issue???

thanks,
Arun Manas


See More: Appending text in a file using unix

Report •

#1
February 6, 2011 at 05:12:06
cat output?.cvs >>output.cvs

will produce a single file containing all the results. Do this before importing into the Excel spreadsheet.


Report •

#2
February 6, 2011 at 21:43:46
hi,,,IJACK

thanks for the reply..

cat output?.cvs >>output.cvs

it works well...


Report •
Related Solutions


Ask Question