A
Abanowicz Tomasz
Hello
My @files array contains file names:
11.jpg
111.jpg
0121.pic
1.gif
1
pic 1 cool.gif
aaa1bbb.jpg
I would like to "grep" files containing "1" digit and not "11", "111",
"0121" etc.:
1.gif
1
pic 1 cool.gif
aaa1bbb.jpg
I use the following to do that:
grep (/[^0-9]+$i[^0-9]+/, @files)
Unfortunately it does not match:
1.gif
1
files.
How should my grep look in order to cover those 2 files as well.
thank You for help
My @files array contains file names:
11.jpg
111.jpg
0121.pic
1.gif
1
pic 1 cool.gif
aaa1bbb.jpg
I would like to "grep" files containing "1" digit and not "11", "111",
"0121" etc.:
1.gif
1
pic 1 cool.gif
aaa1bbb.jpg
I use the following to do that:
grep (/[^0-9]+$i[^0-9]+/, @files)
Unfortunately it does not match:
1.gif
1
files.
How should my grep look in order to cover those 2 files as well.
thank You for help