However, try
Our current calendar - the gragorian - started at different time in different countries - starting in October 1582.
the calendar in effect in the year "1" - which there was not one of on the calendar in effect at the time - was the the progenitor of the Julian calendar.
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)
If I use the find command to find files older than n days I have to enter
find . -mtime +(n-1). I tried this on a Solaris 9 system and also Linux. Is this something that all Unix veterans know about (I'm new to Unix)? If so, maybe my man pages need to be updated (how to do this?). :confused: (4 Replies)
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)
Dear Frends,
Could you please help me with the command or option by which I can find
day where the input is date(can be of future or past).
I do have for linux, However it is not working @ hp unix.
Please help.
Regards
Rahul (4 Replies)
Hi,
We have a requirement to find the set of filenames from the group of files in a specified folder based on
(i) version number
(ii) sequence number
such that, for any given sequence number in a day only the latest version filenames have to indentified.
Below is the format of... (4 Replies)
Hello All,
I need a bash shell script to find out a day from the date.For example we give the date(20100227/YYYYMMDD) then we get the day 'Saturday'.
Thanks in advance,
Satheesh (5 Replies)
Hi,
I need to find all files of particular day lets say for 2nd august in below.
-rw-r--r-- 1 skl eusdc 8168 Aug 5 19:31 aabc123.txt
-rw-r--r-- 1 skl eusdc 4251 Aug 5 19:31 aabc124.txt
-rw-r--r-- 1 skl eusdc 4252 Aug 6 19:31 aabc125.txt
-rw-r--r-- ... (15 Replies)
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)
In HP-UX the date command does not have the "-d" switch like some other *nixes do. I'm working a simple script to tell me, given the day, month and year what day of the week that falls on.
Assuming valid day, month and year input (I'd perform quality checks on the input separately, but not... (5 Replies)
Hi Experts,
i am using the below code get the date of previous day.
#!/usr/bin/ksh
datestamp=`date '+%Y%m%d'`
yest=$((datestamp -1))
echo $yest
When i execute the code i am getting output as:
20130715
What i am trying here is, based on the date passed i am fetching previus day's... (0 Replies)
Discussion started by: learner24
0 Replies
LEARN ABOUT OSF1
cal
cal(1) General Commands Manual cal(1)NAME
cal - Displays a calendar
SYNOPSIS
cal [month [year]]
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
cal: XCU5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
OPTIONS
None
OPERANDS
Names the month for which you want the calendar. It can be a number between 1 and 12 for January through December, respectively. If month
is not specified, cal displays a calendar for the entire year, unless year is also omitted. Names the year for which you want the calen-
dar. Because cal can display a calendar for any year from 1 to 9999, enter the full year rather than just the last two digits. If year is
not specified, cal uses the current year.
If no operands are specified, cal displays a calendar for the current month.
DESCRIPTION
The cal command writes to standard output a Gregorian calendar for the specified year or month.
For historical reasons, the cal command's Gregorian calendar is discontinuous. The display for September 1752 (cal 9 1752) jumps from
Wednesday the 2nd to Thursday the 14th.
The cal command checks the LC_TIME environment variable and uses the correct headers for the current locale. If LC_TIME is not set, cal
checks the value of LANG. If neither variable is set, you receive English headers.
EXIT STATUS
The following exit values are returned: Successful completion. An error occurred.
EXAMPLES
To display a calendar for February 1990, enter: cal 2 1990 To display a calendar for the year 84 A.D., enter: cal 84 To display a calendar
for the current month, enter: cal
ENVIRONMENT VARIABLES
The following environment variables affect the execution of *cmd*: Provides a default value for the internationalization variables that are
unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization vari-
ables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value,
overrides the values of all the other internationalization variables. Determines the locale for the interpretation of sequences of bytes
of text data as characters (for example, single-byte as opposed to multibyte characters in arguments). Determines the locale for the for-
mat and contents of diagnostic messages written to standard error. Determines the format and contents of the calendar. Determines the
location of message catalogues for the processing of LC_MESSAGES. Determines the time zone used to calculate the value of the current
month.
SEE ALSO
Commands: date(1)
Files: locale(4)
Standards: standards(5)
Command and Shell User's Guide
cal(1)