The UNIX and Linux Forums  
Ciao e benvenuto da parte degli Stati Uniti al UNIX e Linux Forum! Grazie per la visita ed unirsi alla nostra Comunità Globale.

Go Back   UNIX e Linux Forum > Inizio Forum > Shell scripting e di programmazione
.
google unix.com



Shell scripting e di programmazione Pubblica domande su KSH, CSH, SH, Bash, Perl, PHP, sed, awk e da altri script di shell e linguaggi di scripting shell qui.

Più di UNIX e Linux Forum Argomenti potreste trovare utili
Filo Thread Starter Forum Risposte Ultimo Post
Perl, stampa una stringa in colonne doubleminus UNIX for Dummies Domande & Risposte 5 05-21-2008 09:41 PM
append una stringa a un risultato grep melanie_pfefer Shell scripting e di programmazione 8 03-19-2008 07:19 AM
perl: semplice domanda sulla stringa append the_learner Shell scripting e di programmazione 1 05-14-2007 05:09 PM
Appende stringa in tutte le righe Rock Shell scripting e di programmazione 7 12-01-2006 02:46 AM
append esc stringa beilstwh Shell scripting e di programmazione 2 05-11-2005 01:33 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Cerca in questo Thread Rate Thread Modalità di visualizzazione
  #1 (permalink)  
Old 04-28-2008
karthikn7974's Avatar
karthikn7974 karthikn7974 is offline VIP Member  
Supporter
  
 

Iscriviti Data: luglio 2007
Ubicazione: Singapore
Interventi: 58
Aggiungi stringa di colonne da 2 file

Salve

Avendo un file come segue
file1.txt
Codice:
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
Codice:
  Status 
=============
Solved
Pending
Outage
Process
Necessità di aggiornamento file1.txt come di seguito
Codice:
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
c'è comunque da aggiungere colonne o utilizzando awk sed

grazie in anticipo
 

Segnalibri

Thread Tools Cerca in questo Thread
Cerca in questo Thread:

Ricerca Avanzata
Modalità di visualizzazione Vota questo thread
Vota questo thread:

Distacco regolamento
Tu non può post nuovo thread
Tu non può inviare una risposta
Tu non può postare allegati
Tu non può modificare i tuoi post

BB codice è Su
Smilies sono Su
[IMG] codice Su
Codice HTML è Chiuso
Trackbacks sono Su
Pingbacks sono Su
Refbacks sono Su




Tutti gli orari sono GMT -4. La data di oggi è 01:42 PM.


Powered by: vBulletin, Copyright © 2000 - 2006, Jelsoft Enterprises Limited. Traduzioni Powered by .
vBCredits v1.4 Copyright © 2007 - 2008, PixelFX Studios
UNIX e Linux Forum Content Copyright © 1993-2009. Tutti i diritti Reserved.Ad di gestione da RedTyger

Contenuti pertinenti URL da vBSEO 3.2.0