quick script question
- From: M E Fieu <sibu168@xxxxxxxxx>
- 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
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
- Follow-Ups:
- Re: quick script question
- From: Mikkel L. Ellertson
- Re: quick script question
- From: Todd Zullinger
- Re: quick script question
- Prev by Date: Re: Please Help With Dual Head
- Next by Date: RE: quick script question
- Previous by thread: Doubt about iptables rules.
- Next by thread: Re: quick script question
- Index(es):
Relevant Pages
- How to compile first network program? E.g. to PING google.com
... abc# echo "Hello World!" ... Do You Yahoo!? ... Mail has the best
spam protection around ... (freebsd-questions) - Scripts length, echo, and execution speed
... I have this php script of 3,500 lines with a big switch that is such that on ...
echo ''; ... Do You Yahoo!? ... Mail has the best spam protection
around ... (php.general) - Re: Combining variables
... If I have three parameters in a script thus: ... and I now build a for loop
to echo the values ... parameter PARM10, how would I do that by combining my AZ
parameter. ... Do you Yahoo!? ... (AIX-L) - Re: /var/adm/wtmp
... My Yahoo! ... Mail Home - Mail Tutorials - Help ... echo
'\nCleaning /var filesystem' ... > Sent by: IBM AIX Discussion List ... (AIX-L) - Re: [SLE] Firefox X display problem--Start Again
... so please excuse my rambling... ... Another wild guess is that maybe firefox
... % echo $MOZILLA_FIVE_HOME ... Do you Yahoo!? ... (SuSE)