03-04-2008
Great, works, many thanks!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Using the date command
how do get yesterday's date??
e.g.
date '+%b%e%Y'
July 30 2002
I need to get
July 29 2002
using the date command.
Thanx
(p.s. sorry if it's a very obvious question) (6 Replies)
Discussion started by: niamo1
6 Replies
2. UNIX for Dummies Questions & Answers
we're using HP-UX
I need to change the year. What is the date command?
Thanks (2 Replies)
Discussion started by: saldana
2 Replies
3. Shell Programming and Scripting
I want to get previous date from date command. I am using ksh shell.
Exmp:
today is 2008.09.04
I want the result : 2008.09.03
Please help.
Thanks in advance. (4 Replies)
Discussion started by: rinku
4 Replies
4. UNIX for Dummies Questions & Answers
Hi All.
I'm using date -a to 'drift' the time forward / backwards. The question is - how do I know when its finished 'drifting' ? On some systems I have another time reference I can use but not always.
thanks (1 Reply)
Discussion started by: Mudshark
1 Replies
5. Shell Programming and Scripting
Hi is it possible to give the date command like 24th July 2009
ive tried
DATE=`date "+%d%m%Y"
echo $DATE
that only replies 2009 correctly. not sure how to display the month in full or if unix knows how to do i.e 2nd, 24th, 3rd (1 Reply)
Discussion started by: magnia
1 Replies
6. Shell Programming and Scripting
Hi,
does anybody know how to format `date` command correctly to return the day of the week? Thanks -A
I work in ksh.... (1 Reply)
Discussion started by: aoussenko
1 Replies
7. Shell Programming and Scripting
Hi
I want to get tomorrow and yesterday date from date command. My shell is KSH and server is AIX. I tried several options, but unable to do. Please help on this.
Regards
Rajesh (5 Replies)
Discussion started by: rajeshmepco
5 Replies
8. Shell Programming and Scripting
Hi all,
Need an urgent help on the below scenario.
script:
awk -F","
'BEGIN { #some variable assignment}
{ #some calculation and put values in array}
END {
year=#getting it from array and assume this will be 2014
month=#getting it from array and this will be 05
date=#... (7 Replies)
Discussion started by: vijaidhas
7 Replies
9. HP-UX
HI,
Can anyone tell me how to pull the date and file name separated by a space using the find command or any other command. I want to look through several directories and based on a date timeframe (find -mtime -7), output the file name (without the path) and the date(in format mmddyyyy) to a... (2 Replies)
Discussion started by: lnemitz
2 Replies
10. HP-UX
current date command runs well
awk -v t="$(date +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
subtract 30 days fails
awk -v t="$(date --date="-30days" +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
awk command in hp unix subtract 30 days automatically from current date without date illegal option error... (20 Replies)
Discussion started by: kmarcus
20 Replies
LEARN ABOUT DEBIAN
test::checkmanifest
Test::CheckManifest(3pm) User Contributed Perl Documentation Test::CheckManifest(3pm)
NAME
Test::CheckManifest - Check if your Manifest matches your distro
VERSION
version 1.25
SYNOPSIS
use Test::CheckManifest;
ok_manifest();
DESCRIPTION
"Test::CheckManifest"
EXPORT
There is only one method exported: "ok_manifest"
METHODS
ok_manifest [{exclude => $arref}][$msg]
checks whether the Manifest file matches the distro or not. To match a distro the Manifest has to name all files that come along with the
distribution.
To check the Manifest file, this module searches for a file named "MANIFEST".
To exclude some directories from this test, you can specify these dirs in the hashref.
ok_manifest({exclude => ['/var/test/']});
is ok if the files in "/path/to/your/dist/var/test/" are not named in the "MANIFEST" file. That means that the paths in the exclude array
must be "pseudo-absolute" (absolute to your distribution).
To use a "filter" you can use the key "filter"
ok_manifest({filter => [qr/.svn/]});
With that you can exclude all files with an '.svn' in the filename or in the path from the test.
These files would be excluded (as examples):
o /dist/var/.svn/test
o /dist/lib/test.svn
You can also combine "filter" and "exclude" with 'and' or 'or' default is 'or':
ok_manifest({exclude => ['/var/test'],
filter => [qr/.svn/],
bool => 'and'});
These files have to be named in the "MANIFEST":
o /var/foo/.svn/any.file
o /dist/t/file.svn
o /var/test/test.txt
These files not:
o /var/test/.svn/*
o /var/test/file.svn
EXCLUDING FILES
Beside "filter" and "exclude" there is another way to exclude files: "MANIFEST.SKIP". This is a file with filenames that should be
excluded:
t/my_very_own.t
file_to.skip
ACKNOWLEDGEMENT
Great thanks to Christopher H. Laco, who did a lot of testing stuff for me and he reported some bugs to RT.
AUTHOR
Renee Baecker, <module@renee-baecker.de>
COPYRIGHT AND LICENSE
Copyright (C) 2006 - 2011 by Renee Baecker
This library is free software; you can redistribute it and/or modify it under the same terms as Artistic License 2.0
AUTHOR
Renee Baecker <module@renee-baecker.de>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2011 by Renee Baecker.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
perl v5.14.2 2012-01-31 Test::CheckManifest(3pm)