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 > UNIX for Dummies Domande & Risposte
.
google unix.com



UNIX for Dummies Domande & Risposte Se non sei sicuro dove pubblicare un UNIX o Linux domanda, posta da qui. Tutti i neofiti di Linux e UNIX benvenuto!

Più di UNIX e Linux Forum Argomenti potreste trovare utili
Filo Thread Starter Forum Risposte Ultimo Post
comando grep christine33990 UNIX for Dummies Domande & Risposte 11 05-06-2008 02:45 AM
come ad escludere il comando dalla GREP GREP yamsin789 UNIX e avanzata per utenti esperti 2 10-05-2007 02:59 AM
aiuto comando grep Ismaele ^ soyuz Shell scripting e di programmazione 4 07-11-2007 09:01 AM
comando grep pmsuper UNIX for Dummies Domande & Risposte 6 11-22-2006 07:12 AM
comando grep debasis.mishra Shell scripting e di programmazione 1 03-28-2006 01:53 AM

Closed Thread
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 12-16-2004
whatisthis's Avatar
whatisthis whatisthis is offline
Utente Registrato
  
 

Join Date: Aug 2004
Interventi: 175
Question comando grep

Salve,
Ho bisogno di due variabili grep allo stesso tempo nella programmazione della shell.

\u003d Dec_16 come oggi, e $ 1 \u003d 5, come faccio a grep come questo:
"$ today_ $ 1"?

Grazie in anticipo!
  #2 (permalink)  
Old 12-16-2004
Jim McNamara jim mcnamara is offline Forum Staff  
...@...
  
 

Iscriviti Data: febbraio 2004
Ubicazione: MN
Messaggi: 5.719
La tua stringa fa DEC_165 - stai cercando DEC_15?
o DEC_165?
  #3 (permalink)  
Old 12-16-2004
whatisthis's Avatar
whatisthis whatisthis is offline
Utente Registrato
  
 

Join Date: Aug 2004
Interventi: 175
Question Sto cercando "DEC_16_5".

jim,
Sto cercando "DEC_16_5".
Vorrei $ oggi è sostituito dal DEC_16 e $ 1 è sostituito dal 5.
  #4 (permalink)  
Old 12-16-2004
Jim McNamara jim mcnamara is offline Forum Staff  
...@...
  
 

Iscriviti Data: febbraio 2004
Ubicazione: MN
Messaggi: 5.719
provare qualcosa di simile a questo
Codice:
today="DEC_16"
num="5"

grep $today"_"$num  <filename>
Potreste voler sostituire $ num con $ 1
  #5 (permalink)  
Old 12-16-2004
whatisthis's Avatar
whatisthis whatisthis is offline
Utente Registrato
  
 

Join Date: Aug 2004
Interventi: 175
Talking Thank You!

Ha funzionato!

Grazie per il vostro aiuto!
  #6 (permalink)  
Old 01-31-2005
whatisthis's Avatar
whatisthis whatisthis is offline
Utente Registrato
  
 

Join Date: Aug 2004
Interventi: 175
Question Non preoccuparti. Il mio errore.

Ci scusiamo per la confusione.

Ultimo a cura di whatisthis; al 01/31/2005 03:27 PM..
Closed Thread

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 è 04: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