10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I've the following requirement, where i need to zip the yesterday files every day .
Yesterday's Files
touch AB_XYZA_20130930183017.log
touch AB_DY_XYZA_20130930183017.log
touch AB_GZU_20130930183017.log
touch AB_XYZA_20130930180023.log
touch AB_DY_XYZA_20130930180023.log
touch... (1 Reply)
Discussion started by: smile689
1 Replies
2. Shell Programming and Scripting
Im in EST, and im using the command
CurrentDate=`TZ="EST+24" date +'%y%m%d'`
to get the yesterday's date.
Does this work perfectly for the boundary conditions of month end or year end(leap year) etc ? (2 Replies)
Discussion started by: prasperl
2 Replies
3. Shell Programming and Scripting
Hello,
Can any one please assist how to scirpt it:
Every day a new log file is create and I want to process only the one generated yesterday and get the data of column 3 and 6.
For example today's date is 24 then I want to get the data of log file created on 23rd.
Log Files in... (7 Replies)
Discussion started by: sureshcisco
7 Replies
4. Shell Programming and Scripting
Hi,
Have to check log file for yesterday, I have tried this script, but it is showing error as -d illegal option.
res=max_total`date -d'yesterday'+%y%m%d`.log
res=max_total`date +%y%m%d`.log
this is working fine for today.
Please help me on this.
Thanks in advance,
Neha. (3 Replies)
Discussion started by: NehaKrish
3 Replies
5. UNIX for Dummies Questions & Answers
Hi All !
We have to compress a big data file in unix server and transfer it to windows and uncompress it using winzip in windows.
I have used the utility ZIP like the below.
zip -e <newfilename> df2_test_extract.dat
but when I compress files greater than 4 gb using zip utility, it... (4 Replies)
Discussion started by: sakthifire
4 Replies
6. Shell Programming and Scripting
hi, i was required to write a shell script to get yesterday's date flatfile. but i only know how to get today's date flatfile. Please observed my below scripting: Please help! Thanks
=================================================
#!/bin/sh
HOST='192.168.1.200'
USER='ftp1'... (19 Replies)
Discussion started by: lifeseries
19 Replies
7. Shell Programming and Scripting
Hello All,
I am using the below script to get yesterday date, but it is giving date of day before yesterday. Right now its 080906 but this code is giving 080904. And my requirement is 080905.
#!/bin/sh
CurrentDate=`TZ="GMT+24" date +'%y%m%d'`
echo $CurrentDate;
WHY?
Please help..
... (7 Replies)
Discussion started by: wakhan
7 Replies
8. Shell Programming and Scripting
Hi,
I am looking for the unix script which can takes the 2 month old data from a TXT file (there is one txt file in whiche messages are appended on daily basis) and compress them into new file.Please halp me out. (2 Replies)
Discussion started by: vpandey
2 Replies
9. UNIX for Dummies Questions & Answers
how can I use 'ls' to list file which is accessed yesterday? Thx :confused: (2 Replies)
Discussion started by: aaron_fong
2 Replies
10. UNIX for Dummies Questions & Answers
Hi,
How wud I script a particular log file to be compressed at a particular time and to be uncompressed after say 2 hours ?
Im on a aix 3.2 box .
file to be compressed --- > # pwd
# /zssps/sps06/slogfile
Thanks (3 Replies)
Discussion started by: cubicle^dweller
3 Replies