10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello,
I have many files called day001, day002, day003 and I want to rename them by day20070101, day20070102, etc.
I need to do it for several years and leap years as well.
What is the best way to do it ?
Thank you. (1 Reply)
Discussion started by: Ggg
1 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
I have a requirement where I need to first capture the current day & move all the files from a particular directory based on a previous day.
i.e move all the files from one directory to another based on current day & a previous day. Here is what I am trying, but it gives me errors.... (2 Replies)
Discussion started by: dsfreddie
2 Replies
3. Shell Programming and Scripting
Hi,
I would like to write a script that checks if a file ('counter') was modified the previous day, if so erase its contents and write 00000000 into it.
For e.g. if the file 'counter' was last modified at 11.30pm on 24th May and the script runs at 12.15am of 25th May, it should erase it's... (1 Reply)
Discussion started by: hegdepras
1 Replies
4. Shell Programming and Scripting
I am using the code below modified from a post I saw here regarding having the script write out future dates. The problem is that instead of making 8/1 it makes 7/32! Please help!
yy=`date +%Y`
mm=`date +%m`
dd=`date +%d`
echo "Today is : $yy $mm $dd"
#!/usr/bin/ksh
date '+%m... (5 Replies)
Discussion started by: libertyforall
5 Replies
5. Solaris
Recently i have attended a telephonic interview. As i dont have work experience in solaris i was not able to deliver correct answer for this question.
Your answer will help for the people like me who is looking to become Solaris System administrator. (4 Replies)
Discussion started by: Sesha
4 Replies
6. Shell Programming and Scripting
The date increment worked fine until date reached 25/10, which is DLS change date.
/bin/date --date="091025 1 day" +%y%m%d;
the output is 091025
Is this a bug or something missing from the code ! (3 Replies)
Discussion started by: rajbravo
3 Replies
7. Shell Programming and Scripting
Hi All,
I need to find the previous month last day minus one day, using shell script. Can you guys help me to do this.
My Requirment is as below:
Input for me will be 2000909(YYYYMM)
I need the previous months last day minus 1 day timestamp. That is i need 2000908 months last day minus ... (3 Replies)
Discussion started by: girish.raos
3 Replies
8. AIX
Hi guys,
OS: AIX 5.3.0.0
I'm from Portugal and I had problems about Day Light changing time, the hour's changes in first Sunday of November, but it's wrong because in Europe the day light need to change in last Sunday of October. My TZ is
TZ=GMT0BST, that I think BST it's British Summer Time. I... (2 Replies)
Discussion started by: uadm26
2 Replies
9. Shell Programming and Scripting
Our system has an option to supply your timezone in area of world you want to keep time for user transactions and such.
It keeps time zone for user in database as for example -5 for EST.
The problem is we are in EDT -4 (daylight savings time) so the time is displayed wrong.
We can put the... (2 Replies)
Discussion started by: photon
2 Replies
10. Shell Programming and Scripting
Hi ,
I am relatively new to unix...
Can u pls help me out to find out if the first day of the month is a working day ie from (Monday to Friday)...using Date and If clause in Korn shell..
This is very urgent.
Thanks for ur help... (7 Replies)
Discussion started by: phani
7 Replies
timezone(5) File Formats Manual timezone(5)
NAME
timezone, dst - difference between Universal (Greenwich mean) time and Local time
VALUES
Default
A default value of indicates that the default value for the timezone tunable (420 minutes west of Greenwich, England ) is to be interpreted
as a daylight savings time value.
Allowed values
The value for the tunable should correspond to a defined time zone, and thus should be at least a multiple of 15 minutes. More commonly
the value will be a multiple of 60 or 30 minutes, corresponding to an hour or half-hour time zone.
The value of the tunable specifies if the time is with daylight savings or not. When the value is set to then the system is using daylight
savings time, and if it is set to the system is not.
Recommended values
Any allowed value is equally recommended. However, the chosen value should correspond to the time zone and daylight saving scheme of the
system site or to a time zone and daylight saving scheme which has meaning for applications or users.
DESCRIPTION
The tunable is the difference between Greenwich mean time (Universal Time) and local time, expressed as minutes west of Greenwich, England.
The tunable indicates whether the tunable is to be interpreted as a standard or daylight savings time value.
These tunables provide a way to convert between Grenwich Mean Time (or Universal Time) and local time. Although is a tunable, it is not
used to affect the behavior of the system. Rather, it is used to remember time zone information when the system is rebooted. This infor-
mation is returned by under HP-UX extensions. The tunable is independent of other methods of indicating time zones. For example, gets or
sets the time in either Universal or local time by using the environment variable. In this case the tunable has no effect. In general, it
is best to refer to the manpages for specific system calls such as and to check if there is a dependency on the tunable.
Who Is Expected to Change This Tunable?
Anyone.
Restrictions on Changing
Changes to these tunables take effect at the next reboot.
When Should the Value of This Tunable Be Changed?
These tunables may be changed to match the system's geographic time zone or the time zone of users.
What Other Tunable Values Should Be Changed at the Same Time?
The and tunables should always be set and interpreted as a pair of values.
WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of
HP-UX.
Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation,
some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun-
able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was
factory installed on your system, see at
AUTHOR
and were developed by HP.
Tunable Kernel Parameters timezone(5)