File::Copy::Link(3pm) User Contributed Perl Documentation File::Copy::Link(3pm)NAME
File::Copy::Link - Perl extension for replacing a link by a copy of the linked file.
SYNOPSIS
use File::Copy::Link;
copylink 'file.lnk';
use File::Copy::Link qw(safecopylink);
safecopylink 'file.lnk';
DESCRIPTION
"copylink"
reads the filename linked to by the argument and replaced the link with a copy of the file. It opens a filehandle to read from the
link, deletes the link, and then copies the filehandle back to the link.
"safecopylink"
does the same as "copylink" but without the open-and-delete manouvre. Instead, it uses "File::Spec::Link" to find the target of the
link and copies from there.
This module is mostly a wrapper round "File::Spec::Link::linked" and "File::Copy::copy", the functionality is available in a command line
script copylink.
EXPORT
Nothing by default, can export "copylink", `"safecopylink".
SEE ALSO copylink(1)File::Copy(3)File::Spec::Link(3)AUTHOR
Robin Barker, <Robin.Barker@npl.co.uk>
COPYRIGHT AND LICENSE
Copyright 2003, 2006, 2007 by Robin Barker
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.4 2011-09-30 File::Copy::Link(3pm)
Check Out this Related Man Page
File::Spec::Functions(3pm) User Contributed Perl Documentation File::Spec::Functions(3pm)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.14.2 2010-09-20 File::Spec::Functions(3pm)
Hi,
whenever I copy a code to vi session from other script it just goes weird.
It just goes across the whole screen and looks really bizzare
If the code is small I can manually remove the tabs and indent it correctly but if it is 2000 lines it makes it really difficult.
Is there something... (12 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)
Dear Guy’s
By using dd command or any strong command, I’d like to copy huge data from file system to another file system
Sours File system: /sfsapp
File system has 250 GB of data
Target File system: /tgtapp
I’d like to copy all these files and directories from /sfsapp to /tgtapp as... (28 Replies)
File A
I have list of :
ABCND1
ABCND2
ABCnd3
ABCnd4
I want file B like below
Start+
S Pate=ABCND1 AAlo1
S Pate=ABCND1 Q1234
S Pate=ABCND1,P12345 (7 Replies)
I have a script that I am using to copy around 40-70k files to a NFS NAS.
I have posted my code below in hopes that someone can help me figure out a faster way of achieving this.
At the end of the script i need to have all the files in the list, copied over to the nas with source directory... (8 Replies)
Hello,
I am currently learning UNIX scripting and have written a simple copy program.
However, upon execution, it returns an error despite debugging correctly.
Can anyone assist in explaining this?
Attached screenshots illustrating a test execution.
Many thanks. (13 Replies)
Would it be possible for a script to duplicate a file and incrementally number it?
File in: XXX_007_0580_xxxx_v0016.aep
File out: XXX_007_0580_xxxx_v0017.aep
If someone knows of a way I'd love to see it.
Thanks! (7 Replies)
I have a script I am trying to test and run but it runs against a jar file. I wrote an external property file so it would redirect with my script, but it keeps going in search of the previous property file. Is there any way to externally over write the jar file and if not how do you go about... (7 Replies)
Greetings :)
Got a basic one to muddle through tonight; and hoping for a smidgen of help 'long the way ;)
Here 'tis:ls ./dir1/ | grep -i .jpg | xargs cp -f ./dir1/$1 ../../dir2/$1Simple enough; and to this amateur eye, it looks like things should work pretty well. But, of course, it tanks... (10 Replies)
Hi all,
I have files and have a missing record. I need copy the existing record and mark those values up. For example in the below file 11048 is missing. I need to copy 22001 and copy those create the values for 11048. I have 120 set of files and I need to do that on all files.
Note the... (8 Replies)