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

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

Re: [shell-script] Arquivo gerado com a data de hoje


From: Shell Script
Subject: Re: [shell-script] Arquivo gerado com a data de hoje
Date: Wed, 30 Jan 2002 12:46:30 -0200

Ola,

tente utilizar o " ` ", para colocar comandos na linha. Teste:

#!/bin/bash
/bin/ping -c10 10.4.1.1 > `date +%d'_'%m'_'%Y`


[]´s

Caros,

Como posso criar um arquivo com a data de hoje:

#!/bin/bash
data = `date +%d'_'%m'_'%Y`
/bin/ping -c10 10.4.1.1 > pinghj.txt
mv pinghj.txt $data


--------------------------------------
--------------------------------------
Marcelo Brunner
address@hidden
address@hidden



reply via email to

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