Hi,
Any idea to get display of date - n ( n=1,2,3,4 etc) ?
For example , dtoudt will easily execute by dtoudt -3 and result is
>dtoudt -3
1234852529 Date 2009-2-17 time 14:35:29 day 47
How to get it display in 20090217 instead ?
Maybe you have other suggestion to display date... (0 Replies)
Need a little help developing a ksh script. Have read through Perderabo's datecalc routine and it does not seem to fit the function I am looking for. Basically what I am trying to do is find any file (in a specific directory) that was created within the last five minutes. I am not a programming... (3 Replies)
hii all.
I have to get the date of the 7th day past from the current date.
if i give the current date as sep 3 then i must get the date as 27th of august.
can we get the values from the "cal" command.
cal | awk '{print $2}' will this type of command work.
actually my need is
if today is... (17 Replies)
I wan to view files in a directory of a specific date. For example a log directory has log files . I want to view the list of the files which were generated on 01-May-2011.
Is there any option/proces to perform it?? (1 Reply)
Hi all,
I have a variable where it has a past date value in the format YYYY-MM-DD
eg->
pcontromModate="2008-11-31"
How can i get the date 1 day before the pcontromModate.
The required date is 2008-11-30. ..Plz reply since its an urgent one (2 Replies)
Hi,
Can anyone tell me how to get the CPU utilisation for past 1 day in Solaris.
Below is the version i m using
SunOS ss1qeb 5.10 Generic_138889-03 i86pc i386 i86pc
thanks in advance (2 Replies)
hi all..
i want 2 know how 2 find 7days past date from current date..
when i used set datetime = `date '+%m%d%y'` i got 060613..
i just want to know hw to get 053013..
i tried using date functions but couldnt get it :( i use c shell and there is no chance that i can change that ..... (3 Replies)
Hi All,
I would like to create a file say test.txt.
And the requirement is its creation date should be 30 minutes past.
For Example :
If i am creating a file at 2:00 am means. Creation time should be 01:30 am.
likewise if i am creating a file at 5 pm means. Creation date should be... (5 Replies)
Hello All,
I use date like the following in one of my scripts:
date=`TZ=GMT+2 date +%Y-%m-%d`
=> gives 2016-04-20
I want to use just one argument to my script such as number of days which represents "how old the found files are" such as "14" means I need to find 14 days old files to... (7 Replies)
Discussion started by: EAGL€
7 Replies
LEARN ABOUT DEBIAN
xcalpr
XCALPR(1) General Commands Manual XCALPR(1)NAME
xcalpr - print xcal calendar entries
SYNTAX
xcalpr [ -c ][ -x ][ -f file ][ -d dir ][ -u user ][ date-spec ]
DESCRIPTION
Xcalpr prints the contents of the xcal files. It is intended to be used in situations when you have no access to an X screen. It can also
be used to generate entries for the standard UNIX calendar program.
With no arguments, it prints any entries that exist for the next seven days. The program also reads the contents of the seven daily files
and prints them at the appropriate point in the output stream. Each line in the output is preceded by the day of the week, the day of the
month, the month and the year.
Xcalpr can be given a date specification to select months and years. If the date spec consists of just a year number, then all the data
for that year is printed. For example:
xcalpr 1994
will print all the data for 1994. Several years can be specified.
If you give the name of a month, then the data for that month in the current year will be printed. If the month is in the past, then the
data for that month next year will be printed. For example, if
xcalpr oct jan
is typed in August, xcalpr will print October in the current year and January next year.
You can select a particular year by adding the number after any months that you need printing:
xcalpr oct nov 1994
will print October and November in 1994.
There are a couple of special `month' names. The name rest will print the data for the rest of the month, starting tomorrow. The rest
argument is not recognised if you give a year as a parameter. If tomorrow happens to be the first day of the next month, then all the data
for next month will be printed. The name next prints all the data for next month.
OPTIONS
The -c option causes xcalpr to output lines suitable for input to the standard UNIX calendar program.
The -d switch is followed by a directory name and specifies an alterative location for your Calendar directory. Your home directory is
prepended if the name doesn't start with a slash or a dot.
The -f option is followed by a file name and xcalpr will write it's output to that file, rather than standard output.
The -u option is followed by a user name and dumps their calendar files rather than yours.
The -x option makes xcalev operate with Calendar files that are compatible with the xcalendar program.
FILES
$HOME/Calendar/*
xc<dd><Mon><Year> A data file is day, Month in three letter format and the year.
xy<Year> A year directory.
xw<Day> A data file for the weekly code, one per day.
SEE ALSO xcal(1), xcalev(1), xcal_cal(1)AUTHOR
Copyright 1993 by Peter Collinson, Hillside Systems All rights reserved.
This product includes software developed by the University of California, Berkeley and its contributors.
X Version 11 R5 October 1993 XCALPR(1)