I have a date that looks like this:
2008/100:18:40:47.040
I need it to look like this:
2008 04 09 18 40 47 040
I have looked at datecalc and it doesn't seem like it takes the day of year for this year (or whatever year is input) and converts it into month and day. It also has to account... (2 Replies)
Hi
I have files like
abc_cd_20110302_123423
abc_cd_ef_20110301_123423
abc_cd_ef_20110403_123423
abc_ef_20110401_123423
I want to extract the
the year and month associated with each file.
I tried
logfileyearmonth=`echo $logfile | awk -F_'{print $NF}'`
Any other way can I... (6 Replies)
So why does the password reset page tell me I've answered the question incorrectly?
First, I tried to register. Never received an email. So I tried to register with a different email/username. I was told it was taken. I tried to have a password sent to my email, but June is not the 6th month... (1 Reply)
I have created this program to get the next month and year. Is there a simpler way.
#!/bin/ksh
string=`cat Date.txt`
year=`echo $string | cut -c 1-4`
month=`echo $string | cut -c 5-6`
echo $year$month
mon=`expr $month + 1`
if ; then
mon=0$mon
echo $mon
fi
if ; then
month=01
... (2 Replies)
Hi All,
I find all files for same month and year
lets say there are following files in directory
-rwxr-xr-x 1 user userg 1596 Mar 19 2012 c.txt
-rwxr-xr-x 1 user userg 1596 Mar 21 2012 d.txt
-rwxr-xr-x 1 user userg 1596 Mar 22 2012 f.txt
-rwxr-xr-x 1... (8 Replies)
Hi All,
lets say there are following files in directory
-rwxr-xr-x 1 user userg 1596 Mar 19 2012 a.txt
-rwxr-xr-x 1 user userg 1596 Mar 19 2012 b.txt
-rwxr-xr-x 1 user userg 1596 Mar 22 2012 c.txt
-rwxr-xr-x 1 user userg 1596 Mar 24 2012 d.txt... (16 Replies)
Discussion started by: Makarand Dodmis
16 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)