The UNIX and Linux Forums  

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
/etc / utmp file non ottenere aggiornato con avvio dettagli jyoti_mil UNIX e avanzata per utenti esperti 1 06-11-2007 11:41 AM
SFTP dettagli di registrazione in un file di log ... santy UNIX for Dummies Domande & Risposte 4 08-19-2006 03:05 PM
Leggi le informazioni da file di log thinakarmani Shell scripting e di programmazione 6 05-04-2006 04:48 AM
Dettagli sul comando ls e tipi di file jacob358 UNIX for Dummies Domande & Risposte 4 07-26-2005 01:12 PM
Che cosa contiene il file di avvio di init dettagli? emplate HP-UX 4 05-04-2005 10:09 AM

 
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 08-21-2008
bp_vardhaman bp_vardhaman is offline
Utente Registrato
  
 

Iscriviti Data: marzo 2008
Località: Hyderabad, India
Interventi: 12
vuole estrarre i dettagli di file particolare,

Ciao ho seguente file

uuid (RO): 62701790-60da-dd9a-669d-a563aac1c435
host-uuid (RO): 5f3f668d-a7c7-4e5f-a4a6-6e90fafb50ed
sr-uuid (RO): 62103d07-e0aa-acf3-2d9f-414ad3377bd0
dispositivo-config (ORP): location: / dev / xapi / blocco
attualmente iscritti (RO): true


uuid (RO): 99158eac-8cce-39bd-4893-8576e7f18234
host-uuid (RO): 5f3f668d-a7c7-4e5f-a4a6-6e90fafb50ed
sr-uuid (RO): 3a1ff5ac-ed95-1deb-da89-ebc3459d0ae8
dispositivo-config (ORP): porta: 3260; SCSIid: 149455400000000000000000001000000710300000d000000; obiettivo: 10.0.71.71; targetIQN: iqn.2001-04.com.example: storage.disk2.sys1.xyz
attualmente iscritti (RO): true


uuid (RO): 4a65094e-46E6-8e85-2c68-0987fe14decd
host-uuid (RO): 5f3f668d-a7c7-4e5f-a4a6-6e90fafb50ed
sr-uuid (RO): 655ad503-1a5f-1221-9181-9a5fb37cb672
dispositivo-config (ORP): location: / dev / xapi / cd
attualmente iscritti (RO): true


uuid (RO): a871cc47-185 bis-7886-5e7f-e2e6c0fb18e0
host-uuid (RO): 5f3f668d-a7c7-4e5f-a4a6-6e90fafb50ed
sr-uuid (RO): db6cece4-4847-ae2f-2b0b-f3901697e2b3
dispositivo-config (ORP): dispositivo: / dev / sdd
attualmente iscritti (RO): true


uuid (RO): 26c74e8b-d931-70a5-11b7-2f36262d116a
host-uuid (RO): 5f3f668d-a7c7-4e5f-a4a6-6e90fafb50ed
sr-uuid (RO): 762f3b74-aab9-8f7f-887d-15c1886314e0
dispositivo-config (ORP): dispositivo: / dev / sdc
attualmente iscritti (RO): true


in modo che il file sia ancora grande oggi la mia domanda è i vuole estrarre il UUID di (RO) di qualsiasi dispositivo, se i pass come argomento come "/ dev / sdc" allora dovrebbe passare particolare che mi uuid (RO), come "26c74e8b -d931-70a5-11b7-2f36262d116a ", perché nessuno può racconta WHT comando esatto? i trdied con awk e grep non ancora in grado di raggiungere la finale.

Grazie
 

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 è 07:09 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