File::Spec::Functions(3) User Contributed Perl Documentation File::Spec::Functions(3)NAME
File::Spec::Functions - portably perform operations on file names
SYNOPSIS
use File::Spec::Functions;
$x = catfile('a','b');
DESCRIPTION
This module exports convenience functions for all of the class methods provided by File::Spec.
For a reference of available functions, please consult File::Spec::Unix, which contains the entire set, and which is inherited by the
modules for other platforms. For further information, please see File::Spec::Mac, File::Spec::OS2, File::Spec::Win32, or File::Spec::VMS.
Exports
The following functions are exported by default.
canonpath
catdir
catfile
curdir
rootdir
updir
no_upwards
file_name_is_absolute
path
The following functions are exported only by request.
devnull
tmpdir
splitpath
splitdir
catpath
abs2rel
rel2abs
case_tolerant
All the functions may be imported using the ":ALL" tag.
COPYRIGHT
Copyright (c) 2004 by the Perl 5 Porters. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
File::Spec, File::Spec::Unix, File::Spec::Mac, File::Spec::OS2, File::Spec::Win32, File::Spec::VMS, ExtUtils::MakeMaker
perl v5.16.3 2013-01-16 File::Spec::Functions(3)
Check Out this Related Man Page
File::Spec::Cygwin(3) User Contributed Perl Documentation File::Spec::Cygwin(3)NAME
File::Spec::Cygwin - methods for Cygwin file specs
SYNOPSIS
require File::Spec::Cygwin; # Done internally by File::Spec if needed
DESCRIPTION
See File::Spec and File::Spec::Unix. This package overrides the implementation of these methods, not the semantics.
This module is still in beta. Cygwin-knowledgeable folks are invited to offer patches and suggestions.
canonpath
Any "" (backslashes) are converted to "/" (forward slashes), and then File::Spec::Unix canonpath() is called on the result.
file_name_is_absolute
True is returned if the file name begins with "drive_letter:", and if not, File::Spec::Unix file_name_is_absolute() is called.
tmpdir (override)
Returns a string representation of the first existing directory from the following list:
$ENV{TMPDIR}
/tmp
$ENV{'TMP'}
$ENV{'TEMP'}
C:/temp
Since Perl 5.8.0, if running under taint mode, and if the environment variables are tainted, they are not used.
case_tolerant
Override Unix. Cygwin case-tolerance depends on managed mount settings and as with MsWin32 on GetVolumeInformation() $ouFsFlags ==
FS_CASE_SENSITIVE, indicating the case significance when comparing file specifications. Default: 1
COPYRIGHT
Copyright (c) 2004,2007 by the Perl 5 Porters. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.16.3 2013-01-16 File::Spec::Cygwin(3)
Are the Terminal commands used in Mac OS 10.1.3 the same as those found on a real Unix system? if they are, what book would you recommend as a terminal refferance guide?
I already have 'The Missing Manual' by O'Reilly, but there ain't much in terms of managing the system via the terminal :(
... (9 Replies)
All
I need a code in Ksh to search and replace a string in a file.
File A
---
AAAA A
BBBB B
CCCC C
DDDD E
FFFF F
File B:
--------
AAAA
BBBB
CCCC
DDDD (9 Replies)
Hello All
Hope someone can help me with an idea or two on how to approach the following situation;
I currently have a process that generates sequenced files. The sequencing is very important and skipping sequences are not allowed. The applicaton has a single thread that consume data produced... (9 Replies)
Hi,
I have two files file A and File B. File A is a error file and File B is source file. In the error file. First line is the actual error and second line gives the information about the record (client ID) that throws error. I need to compare the first field (which doesnt start with '//') of... (11 Replies)
Hi,
I have a program that is accessing a file to update calibration data. However, the file access failed with a "File I/O error" message.
Below are the steps taken to resolve the issue but to no avail:
1) Change permission of file & directory to 777
2) confirmed disk is not full (58%... (11 Replies)
hello everyone. I'm hoping someone can help me out here. I have 2 files. It looks like this:
File 1:
abc1, defg, 50.00, mno,990
abc2, cats, 100.00, pops,991
abc3, dogs, 1.00, treat,992
File 2:
990, airplanes, runway, doctor
991, jets, birds, much
990,... (13 Replies)
Hi,
Can someone help me with a perl file to rename some files please? I can do it with regular command line using the below code, but I need to include this in another script and the other script is perl. I know nothing of perl.
for file in C*
do
newfilename=`echo $file | cut -c8-21-`... (8 Replies)
Hi folks, maybe somebody here can help me.
I have 2 files. File A and File B. File A contains URLs leading to files on the Internet, with one URL per line; The format of the URLs on each line in File A is .
File B contains only the filenames from each line in File A; One filename per line.
... (11 Replies)
Hi. I'm new to Unix and recently received Unix files via email. I downloaded those files but am unable to open them on my computer which uses Mac OS X. How do I open the files? (11 Replies)
Hi,
I am trying to exclude certain rows in File 1, based on File 2. i.e. in the example below, File 3 should be the output; i.e. the rows in File 2 are excluded from File 1. Any hints/suggestions would be highly appreciated.
Input File 1:
a 1 xxx
b 1 wje
c 5 ere
c 2 qqq
d 3 yyy
... (9 Replies)
I have two input file.:
File 1 is a large reference sequence (A large Fasta sequence);
File 1 (is a file which first line is the header description and line other ">" is its corresponding word and counting from 1 till end of file);
>Data_1
ASWDADAQTWQQGSAAAAASDAFAFA
.
.
File 2 is... (31 Replies)
I have a dilemma, we have users who are copying files to "directory 1." These images have file names which include the year it was taken. I need to put together a script to do the following:
Examine the file naming convention, ensuring it's the proper format (e.g. test-1983_filename-123.tif)... (8 Replies)