Thread Grep [ausser *.x]: Mit grep alle Dateien ausser *.x aulesen (8 answers)
Opened by Kogge at 2004-06-17 19:11

Gast Gast
 2004-06-17 19:29
#2899 #2899
So sollte es funktionieren
Code: (dl )
1
2
3
4
5
$dir = 'datas';

opendir DIR, $dir or die "Can't open $dir: $!";
my @files = grep ! /\.html$/, readdir DIR;
closedir DIR;

View full thread Grep [ausser *.x]: Mit grep alle Dateien ausser *.x aulesen