![]() |
Ciao e benvenuto da parte degli Stati Uniti al UNIX e Linux Forum! Grazie per la visita ed unirsi alla nostra Comunità Globale.
|
|
google unix.com
|
|||||||
| Forum | Registrati | Regole Forum | Collegamenti | Album | FAQ | Members List | Calendario | Ricerca | Today's Posts | Mark Forums Read |
| 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 |
| Configurazione snmpd.conf e snmptrapd.conf | jagdish.machhi @ | UNIX e avanzata per utenti esperti | 2 | 04-17-2008 04:01 PM |
| newsyslog.conf | mirusnet | UNIX e avanzata per utenti esperti | 1 | 02-24-2008 11:11 AM |
| come eliminare file in entrata "wtmpx" (/ var / adm / wtmpx) | arm_naja | UNIX e avanzata per utenti esperti | 4 | 03-08-2006 04:00 AM |
| dhcpd.conf | keliy1 | Linux | 1 | 11-17-2004 04:05 PM |
| DNS e resolv.conf | b03der | UNIX for Dummies Domande & Risposte | 10 | 07-26-2002 05:34 AM |
![]() |
|
|
LinkBack | Thread Tools | Cerca in questo Thread | Rate Thread | Modalità di visualizzazione |
|
|
|
||||
|
eliminare dhcp.conf entrata usando sed
Sto cercando di utilizzare sed per rimuovere le voci dal mio file dhcpd.conf.
La forma del file è: Codice:
host foo {
option 1
option 2
}
host bar {
option 1
option 2
}
Codice:
sed -e :a -e "s/^host bar {[^}]*//g;/{/N;//ba" /etc/dhcpd.conf
Ogni pensiero? |
![]() |
| Segnalibri |
| Thread Tools | Cerca in questo Thread |
| Modalità di visualizzazione | Vota questo thread |
|
|