File::Find::Rule::DMIDecode - Common rules for searching for dmidecode files.
use File::Find::Rule; use File::Find::Rule::DMIDecode; my @files = File::Find::Rule->dmidecode_file->in($dir);
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.
dmidecode_file
my @files = File::Find::Rule->dmidecode_file->in($dir);
The dmidecode_file() rule detect dmidecode files by parsing of structure.
dmidecode_file()
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
File::Find::Rule, Parse::DMIDecode, Perl6::Slurp.
Alternative interface to File::Find
https://github.com/michal-josef-spacek/File-Find-Rule-DMIDecode
Michal Josef Špaček mailto:skim@cpan.org
http://skim.cz
© Michal Josef Špaček 2020
BSD 2-Clause License
0.02
To install File::Find::Rule::DMIDecode, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::Find::Rule::DMIDecode
CPAN shell
perl -MCPAN -e shell install File::Find::Rule::DMIDecode
For more information on module installation, please visit the detailed CPAN module installation guide.