in reply to Re^4: Display filenames in mbox folder
in thread Display filenames in mbox folder

I did a grep with that pattern
Did you do a grep -P? Normal grep doesn't support Perl regular expressions. Neither does it with -E.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^6: Display filenames in mbox folder
by peterr (Scribe) on Mar 01, 2015 at 08:23 UTC
    Neither -P or -E worked. I wrote a small script to use that pattern and nothing returned. It would seem the pattern is incorrect.
      Strange. It works for me:
      say for map { /^([0-9][\w.:,=\-]+)$/ } qw( 1231125716.6864.bLyyk:2,S 1 +422830161.R3.asus64:2,S);

      Output:

      1231125716.6864.bLyyk:2,S 1422830161.R3.asus64:2,S
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

        I used the following ..

        #!/usr/bin/perl use warnings; use strict; say for map { /^([0-9][\w.:,=\-]+)$/ } qw( 1231125716.6864.bLyyk:2,S 1 +422830161.R3.asus64:2,S);

        and got:

        Possible attempt to separate words with commas at dirrecurs17.pl line +11. Bareword "say" not allowed while "strict subs" in use at dirrecurs17.p +l line 11. Execution of dirrecurs17.pl aborted due to compilation errors.

        So I commented out the ..

        #use warnings; #use strict;

        ran the script and got no output ??

        Possibly there is something wrong with my Perl install. I noticed various folders under /usr, like Perl, Perl5