NAME

File::Find::Rule::DMIDecode - Common rules for searching for dmidecode files.

SYNOPSIS

use File::Find::Rule;
use File::Find::Rule::DMIDecode;

my @files = File::Find::Rule->dmidecode_file->in($dir);

DESCRIPTION

This Perl module contains File::Find::Rule rules for detecting dmidecode files.

dmidecode text file is output of dmidecode tool, which prints information about DMI.

DMI (Desktop Management Interface) generates a standard framework for managing and tracking components in a desktop, notebook or server computer, by abstracting these components from the software that manages them. See DMI on Wikipedia.

SUBROUTINES

dmidecode_file()
The C<dmidecode_file()> rule detect dmidecode files by parsing of structure.

EXAMPLE

use strict;
use warnings;

use File::Find::Rule;
use File::Find::Rule::DMIDecode;

# Arguments.
if (@ARGV < 1) {
        print STDERR "Usage: $0 dir\n";
        exit 1;
}
my $dir = $ARGV[0];

# Print all dmidecode files in directory.
foreach my $file (File::Find::Rule->dmidecode_file->in($dir)) {
        print "$file\n";
}

# Output like:
# Usage: qr{[\w\/]+} dir

DEPENDENCIES

File::Find::Rule, Parse::DMIDecode.

SEE ALSO

File::Find::Rule

Alternative interface to File::Find

REPOSITORY

https://github.com/michal-josef-spacek/File-Find-Rule-DMIDecode

AUTHOR

Michal Josef Špaček mailto:skim@cpan.org

http://skim.cz

LICENSE AND COPYRIGHT

© Michal Josef Špaček 2020
BSD 2-Clause License

VERSION

0.01