01-19-2008
Not working on all servers
sb008,
Your solution worked great on our Sun Solaris box, but some of the boxes are HP running SUSE Linux and it ignored the TZ command there.
Does anyone know a way to do that in SUSE Linux?
Thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear All:
I want to build a shell that delete files created two or more days ago ... I think it could be built using a special command with ls or grep, I'd apreciate any help from you guys
I have a lot of log files from november, december, january and this tool will help me a lot
The files... (3 Replies)
Discussion started by: josecollantes
3 Replies
2. Solaris
Can you please let me know the command to list the files that are created before some date, this we want to use for the following
Eg: Move all the files that got created before 2006 to new folder in Solaris (3 Replies)
Discussion started by: csreenivas
3 Replies
3. Shell Programming and Scripting
Hi All,
Could you please let me know if there is any one can help to create a shell script to remove some files which is the created date for them greate than 10 days (sysdate-10)
Please try to email me on email removed
Thanks in advance,
Murad (1 Reply)
Discussion started by: murad_fayez
1 Replies
4. UNIX for Dummies Questions & Answers
I wanted to know what command should I use to see the files created in last 2 hours in a given directory.
I know to see the files changed in last one day I can use this:
find /admin//dump -type f -ctime -1 -print | xargs ls -lt|pg
However I am not getting what should I use if I wanted tol... (4 Replies)
Discussion started by: rsonakiya
4 Replies
5. UNIX for Advanced & Expert Users
Hi
I have a requirement to list the files & the total disk utilization they have which are 10 prior to current date.
I tried couple of options in combinations of find mtime, ctime with du -m, but no luck.
Could you please help me in this ? (2 Replies)
Discussion started by: videsh77
2 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I have a question.
i have a directory say /home/pavi/logs
ls -ltr gives all the files in the /home/pavi/logs directory.
i am trying to move only those files existing in this
folder prior to 2 days.
i.e files exiting say May 9th and May 8th remain in this directory
but all the... (12 Replies)
Discussion started by: pavan_test
12 Replies
7. UNIX for Dummies Questions & Answers
HI,
I have 2 questions.
1>
Is there any code to see files that created some day or some time before in a directory???
2>
how or where i will find the last exit status of a process??
thanks (6 Replies)
Discussion started by: jyotidas
6 Replies
8. Shell Programming and Scripting
what is the find to command to find the files created last 30 days (5 Replies)
Discussion started by: rajkumar_g
5 Replies
9. Shell Programming and Scripting
Hi,
I want to find the sum of all the files created 5 days ago and store it in a variable. (os is HP-UX)
can this be extracted from ls -l
Is there any other way of getting the sum of all the files created (4 Replies)
Discussion started by: bang_dba
4 Replies
10. Linux
Hi, ALL
thanks in advance,
i listed all files using this command
ls -ltr $(date +%Y%m%d)*.xmlbut i would like to exclude the last one created ;
Best regard
MEROUAN
Use code tags, thanks. (4 Replies)
Discussion started by: merouan
4 Replies
LEARN ABOUT DEBIAN
module::packaged::generate
Module::Packaged::Generate(3pm) User Contributed Perl Documentation Module::Packaged::Generate(3pm)
NAME
Module::Packaged - Report upon packages of CPAN distributions
SYNOPSIS
use Module::Packaged;
my $p = Module::Packaged->new();
my $dists = $p->check('Archive-Tar');
# $dists is now:
# {
# cpan => '1.08',
# debian => '1.03',
# fedora => '0.22',
# freebsd => '1.07',
# gentoo => '1.05',
# openbsd => '0.22',
# suse => '0.23',
# }
# meaning that Archive-Tar is at version 1.08 on CPAN but only at
# version 1.07 on FreeBSD, version 1.05 on Gentoo, version 1.03 on
# Debian, version 0.23 on SUSE and version 0.22 on OpenBSD
DESCRIPTION
CPAN consists of distributions. However, CPAN is not an isolated system - distributions are also packaged in other places, such as for
operating systems. This module reports whether CPAN distributions are packaged for various operating systems, and which version they have.
Note: only CPAN, Debian, Fedora (Core 2), FreeBSD, Gentoo, Mandriva (10.1), OpenBSD (3.6) and SUSE (9.2) are currently supported. I want to
support everything else. Patches are welcome.
METHODS
new()
The new() method is a constructor:
my $p = Module::Packaged->new();
check()
The check() method returns a hash reference. The keys are various distributions, the values the version number included:
my $dists = $p->check('Archive-Tar');
COPYRIGHT
Copyright (c) 2003-5 Leon Brocard. All rights reserved. This program is free software; you can redistribute it and/or modify it under the
same terms as Perl itself.
AUTHOR
Leon Brocard, leon@astray.com
perl v5.12.4 2011-09-17 Module::Packaged::Generate(3pm)