The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to determine what type of backup I've on the tape fraydey UNIX for Dummies Questions & Answers 2 05-12-2008 08:52 AM
Using 'stat' to determine file system type (with Zenity) mdpalow Shell Programming and Scripting 0 12-20-2007 01:49 AM
use perl to get file type ? the_learner Shell Programming and Scripting 1 10-26-2007 11:04 PM
Human readable type vs MIME type detection using file spauldingsmails Shell Programming and Scripting 0 03-22-2007 12:43 AM
Command to determine Tape Type Surdeymon AIX 4 06-10-2005 02:19 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-10-2006
umen umen is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 239
determine file type with perl

Hello
i will like to know please how can i determine file type inside perl script
not using the unix "file" program
Thanks allot
  #2 (permalink)  
Old 01-11-2006
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,807
file uses magic numbers to decide what a file type is.

You can get file::type from:

http://search.cpan.org/~pmison/File-...b/File/Type.pm

Note that it is version 0.22, which usually indicates that it's a work in progress...
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:25 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0