[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
quick script question
- From: M E Fieu <sibu168 yahoo com>
- To: fedora-list redhat com
- Subject: quick script question
- Date: Tue, 30 May 2006 21:55:47 -0700 (PDT)
Hi.. Need to ask you a simple script question, I used the date command to get the yesterday web
log file using the following command echo ex`date -d yesterday +%y%m%d.log` in Linux. I want to
create a simple script to cat /home/IT/ex060530.log > kr.log using the following script but it is
not working. May I know how do I put the output of echo ex`date -d yesterday +%y%m%d.log into cat
/home/IT/xxxx > kr.log ?
[root w2 krweblog3]# echo ex`date -d yesterday +%y%m%d.log`
ex060530.log
[root w2 krweblog3]# vi krweblog.sh
#!/bin/sh
#
KRWEBLOG3= echo ex`date -d yesterday +%y%m%d.log`
cat /home/IT/$KRWEBLOG3 > kr.log
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]