Shameem Ahamed wrote:
I have files with digits as extensions. Like file.0, file.1
file.2..file.100,file.101 etc.
I want to select only the first 30 files.
I used glob("file.[0-4]?[0-9]") but it doesn't seem to be working.
Try:
"file.{[0-9],[0-4][0-9]}"
(untested)
Try also:
pri
Shameem Ahamed wrote:
> Hi All,
>
> I am wondering how can i use the glob function to get only the first few
> files.
>
>
> I have files with digits as extensions. Like file.0, file.1
> file.2..file.100,file.101 etc.
>
> I want to select only the first 30 files.
>
> I used glob("file.[0
Parag Kalra wrote:
On Wed, Jan 20, 2010 at 2:20 PM, Shameem Ahamed wrote:
I am wondering how can i use the glob function to get only the first few
files.
I have files with digits as extensions. Like file.0, file.1
file.2..file.100,file.101 etc.
I want to select only the first 30 files.
On the same lines I have question to all Perl Gurus. In this scenario can we
following? And if Yes, how efficient it is?
#!/usr/bin/perl
#Author: Parag Kalra
use strict;
use warnings;
# Creating 50 files - you can skip this
foreach(1..50){
open my $fh, '>', 'file.'.$_;
}
my @Req_Input_Files;