Pada 23-Dec-2003, Ronny Haryanto menulis:
> On 23-12-2003 3:11 PM Ronny Haryanto wrote:
> 
> > Pake backtick (biasanya di sebelah kiri angka 1 di keyboard). Misalnya:
> > 
> >     somecommand > output-`date +%e`.log
> 
> Sorry, kalo redirection mesti pake ".." supaya gak bingung, jadi:
> 
>       somecommand > "output-`date +%e`.log"

Hmm ya... ini juga ok:

$ cp file1 > file2 "file2.`date +%e`"
$ ls |grep file
file1
file2.23

Kalau seperti di bawah ini, ada error dikit, tapi tetep ke-copy:
$ cp file1 > "file5.`date +%e`"
cp: missing destination file
Try `cp --help' for more information.

$ ls|grep file
file1
file2.23
file5.23

thanks lagi
aqil

> Ronny

-- 
Berhenti langganan: [EMAIL PROTECTED]
Arsip dan info: http://linux.or.id/milis.php

Kirim email ke