|
From: | Fredi Rolf Bieging |
Subject: | Re: [shell-script] Comando GREP Coluna X Linha |
Date: | Thu, 9 Jun 2016 16:15:32 -0300 |
O google é seu amigo :)
http://www.tutorialspoint.com/awk/awk_basic_examples.htm
http://www.thegeekstuff.com/2010/01/awk-introduction-tutorial-7-awk-print-examples/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+TheGeekStuff+%28The+Geek+Stuff%29Raul Libório
http://rauhmaru.blogspot.com/
openSUSE Member | Linux User #4444581
/etc/httpd/conf.d/ssl.conf:7
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.2016-06-09 14:59 GMT-03:00 'Ernander (Nander)' address@hidden [shell-script] <address@hidden>:Awk resolve seu problema
Em 09/06/2016 2:53 PM, "address@hidden [shell-script]" <address@hidden> escreveu:Boa tarde pessoal, tudo bem?
Estou com dificuldade para fazer um script shell para coletar o status do HD. A idéia é coletar a porcentagem de USO do disco e a partir disso fazer um IF -ge (maior ou igual) á 50 se for ele me traz um echo " Status HD $USO". Abaixo segue um exemplo do comando que eu uso para saber as informações das partições.
[root@localhost tmp]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 59G 2.6G 53G 5% /
tmpfs 495M 0 495M 0% /dev/shm
/dev/sda1 291M 34M 243M 13% /boot
Desde já ficarei muito grato se puderem me ajudar.
[Prev in Thread] Current Thread [Next in Thread]
- Comando GREP Coluna X Linha, janduyeuclides, 2016/06/09
- Re: [shell-script] Comando GREP Coluna X Linha, Ernander (Nander), 2016/06/09
- Re: [shell-script] Comando GREP Coluna X Linha, Raul Libório, 2016/06/09
- Re: [shell-script] Comando GREP Coluna X Linha, Fredi Rolf Bieging <=
- Re: [shell-script] Comando GREP Coluna X Linha, Janduy Euclides, 2016/06/09
- Re: Comando GREP Coluna X Linha, itamarnet, 2016/06/09
- Re: [shell-script] Re: Comando GREP Coluna X Linha, Raul Libório, 2016/06/09
- Re: [shell-script] Re: Comando GREP Coluna X Linha, Janduy Euclides, 2016/06/09
- Re: [shell-script] Re: Comando GREP Coluna X Linha, Raul Libório, 2016/06/09
- Re: [shell-script] Re: Comando GREP Coluna X Linha, Janduy Euclides, 2016/06/09
- Re: [shell-script] Re: Comando GREP Coluna X Linha, Janduy Euclides, 2016/06/09
- Re: [shell-script] Re: Comando GREP Coluna X Linha, itamarnet, 2016/06/09
- Re: [shell-script] Re: Comando GREP Coluna X Linha, Janduy Euclides, 2016/06/10
- Re: [shell-script] Re: Comando GREP Coluna X Linha, Janduy Euclides, 2016/06/10
- Prev by Date: Re: [shell-script] Comando GREP Coluna X Linha
- Next by Date: Re: [shell-script] Comando GREP Coluna X Linha
- Previous by thread: Re: [shell-script] Comando GREP Coluna X Linha
- Next by thread: Re: [shell-script] Comando GREP Coluna X Linha
- Index(es):