shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] Comando GREP Coluna X Linha


From: Janduy Euclides
Subject: Re: [shell-script] Comando GREP Coluna X Linha
Date: Thu, 9 Jun 2016 16:17:31 -0300

Obrigado amigos, vou testar. 


Atenciosamente,




Em 9 de junho de 2016 15:18, Raul Libório address@hidden [shell-script] <address@hidden> escreveu:
 


Raul 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]