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

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

RES: [shell-script] Pegar data


From: Pedro Henrique Ponchio
Subject: RES: [shell-script] Pegar data
Date: Thu, 1 Nov 2001 11:02:50 -0300

Não deve ser a melhor solução, mas dá pra fazer algo do tipo:
 
MES=`date +%m`
DIA=`date +%d`
HORA=`date +%H`
MINUTO=`date +%M`
ANO=`date +%Y`
 
e montar um nome do tipo:
 
$HORA:$MINUTO-$DIA-$MES-$ANO.log
 
 
Pedro
 
-----Mensagem original-----
De: Marlon C. Garcia [mailto:address@hidden]
Enviada em: quinta-feira, 1 de novembro de 2001 09:49
Para: address@hidden
Assunto: [shell-script] Pegar data


        Caros amigos, como faço para obter a data do sistema em
programação
do Shell Unix, com intúito de fazer um log para meu sistema.

Marlon


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ( http://www.grisoft.com).
<http://www.grisoft.com).> 
Version: 6.0.286 / Virus Database: 152 - Release Date: 09/10/2001



Yahoo! Groups Sponsor   
 
<http://rd.yahoo.com/M=171900.1669768.3202967.1588051/D=brclubs/S=213711
1254:HM/A=814601/R=0/*http://br.shopping.yahoo.com/>    
 
<http://us.adserver.yahoo.com/l?M=171900.1669768.3202967.1588051/D=egrou
pmail/S=2137111254:HM/A=814601/rand=412783973>  

Sair da lista: address@hidden
Banco Dados:   http://www.egroups.com/group/shell-script
<http://www.egroups.com/group/shell-script>  

Seu uso do Yahoo! Grupos é sujeito aos Termos do Serviço Yahoo!
<http://br.yahoo.com/info/utos.html> . 



reply via email to

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