Skip to content

lskatz/pp-file-magic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pure perl file magic

I just wanted a pure perl way to detect files

Usage

executable usage

The command will print the file name and file type

file-pp.pl *.*

library usage

use lib './lib';
use strict;
use warnings;

use Magic qw/file/;

for my $f(@ARGV){
  print file($f)."\n";
}

About

Pure perl file magic

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages