Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/perl
- use strict;
- use warnings;
- use utf8;
- use open qw(:std :encoding(utf8));
- my $today = `date +'log/%Y%m%d/*.txt'`;
- for my $f (glob $today) {
- open my $in, '<', $f or die;
- while (<$in>) {
- if (/テスト/) {
- print "$f\n";
- last;
- }
- }
- close $in;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement