hasimir44 has asked for the wisdom of the Perl Monks concerning the following question:
Anyone have a suggestion on how to do the following without using the shell?
update: I didn't mention that the *B1006* filenames include timestamps. So, the last one alphabetically always happens to be the newest. My *real* mistake is that I titled this "oldest" instead of "newest". Damn. :)chomp($report = `ls $path/*B1006* |tail -n 1`);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: grab oldest file
by Tanktalus (Canon) on Jul 06, 2006 at 22:53 UTC | |
by hasimir44 (Sexton) on Jul 06, 2006 at 23:29 UTC | |
by Tanktalus (Canon) on Jul 06, 2006 at 23:43 UTC | |
by hasimir44 (Sexton) on Jul 06, 2006 at 23:49 UTC | |
by jwkrahn (Abbot) on Jul 07, 2006 at 00:06 UTC | |
by shmem (Chancellor) on Jul 07, 2006 at 06:36 UTC | |
by jwkrahn (Abbot) on Jul 07, 2006 at 11:25 UTC | |
Re: grab oldest file
by Hue-Bond (Priest) on Jul 06, 2006 at 22:55 UTC | |
Re: grab newest file
by shmem (Chancellor) on Jul 07, 2006 at 06:15 UTC | |
by jwkrahn (Abbot) on Jul 07, 2006 at 11:40 UTC | |
by shmem (Chancellor) on Jul 07, 2006 at 11:52 UTC |
Back to
Seekers of Perl Wisdom