[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Recortarrrrrrrrrrrr :D
From: |
Andre Pedro |
Subject: |
Recortarrrrrrrrrrrr :D |
Date: |
Mon, 22 Nov 2004 12:56:24 -0300 (ART) |
Falaa pessoal beleuzaa? :D
seguinte to tentando fazer um scriptzinho bem "basico"
para pegar o endereço da interface da rede de um
usuario.. mas eu gostaria de RECORTAR e jogar na
saida padrão bem bunintinho so o endereco ip mesmo ..
hehe
eu sei que posso fazer isso com o CUT!!
mas eu nao consegui fazer muito bem o uso dele.. sei
que é bem simples.. valew
segue o script :)
############ PARA INTERFACES DHCP ##########
#!/bin/bash
echo "Seu ip da Interface eth0 é:" IP=`/sbin/ifconfig
| grep 200` > /tmp/ip
cat /tmp/ip
o que eu quero é so usar o cut nessa linha do cat para
a saida padrão ficar assim :
Seu ip da Interface eth0 é: IP=200.168.242.9
E não assim :
Seu ip da Interface eth0 é: IP= inet end.:
200.168.242.9 Bcast:200.168.242.255 Masc:255.255.255.0
como está sendo..
hehe eu sei que é bem de iniciante mas ta valendo!!
abraços
André
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
- Recortarrrrrrrrrrrr :D,
Andre Pedro <=
- RES: [shell-script] Recortarrrrrrrrrrrr :D, Rodolfo Villanova, 2004/11/22
- Re: RES: [shell-script] Recortarrrrrrrrrrrr :D, Alain, 2004/11/22
- Re: RES: [shell-script] Recortarrrrrrrrrrrr :D, Andre Pedro, 2004/11/22
- Re: RES: [shell-script] Recortarrrrrrrrrrrr :D, Fábio Batista, 2004/11/22
- Re: RES: [shell-script] Recortarrrrrrrrrrrr :D, Andre Pedro, 2004/11/22
- Re: RES: [shell-script] Recortarrrrrrrrrrrr :D, Fernando Lemes da Silva, 2004/11/22
- Re: RES: [shell-script] Recortarrrrrrrrrrrr :D, Alain, 2004/11/22
- Re: RES: [shell-script] Recortarrrrrrrrrrrr :D, Fabiano, 2004/11/22
- Re: RES: [shell-script] Recortarrrrrrrrrrrr :D, Alain, 2004/11/22
- Re: RES: [shell-script] Recortarrrrrrrrrrrr :D, Marcus Vinicius Batista dos Santos, 2004/11/23