Oi
Tendo um arquivo da seguinte forma
file1.txt
Código:
Date (dd/mm)Time Server IP Error Code
===========================================================================
10/04/2008 10:10 ServerA xxx.xxx.xxx.xxx 6
10/04/2008 10:10 ServerB xxx.xxx.xxx.xxx 9
10/04/2008 10:10 ServerC xxx.xxx.xxx.xxx 16
10/04/2008 10:10 ServerD xxx.xxx.xxx.xxx 60
File2.txt
Código:
Status
=============
Solved
Pending
Outage
Process
Necessidade de actualização
file1.txt como abaixo
Código:
Date (dd/mm)Time Server IP Error Code Status
================================================================================================================
10/04/2008 10:10 ServerA xxx.xxx.xxx.xxx 6 Solved
10/04/2008 10:10 ServerB xxx.xxx.xxx.xxx 9 Pending
10/04/2008 10:10 ServerC xxx.xxx.xxx.xxx 16 Outage
10/04/2008 10:10 ServerD xxx.xxx.xxx.xxx 60 Process
existe qualquer forma para anexar colunas usando awk ou
sed
thanks in advance