Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

file::copy::link(3pm) [debian man page]

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)
Man Page

14 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Copy code to vi

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)
Discussion started by: rooh
12 Replies

2. Shell Programming and Scripting

Search and Replace in Ksh

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)
Discussion started by: DeepakXavier
9 Replies

3. What is on Your Mind?

fun scripts

Lets get a list of everyones funny scripts (8 Replies)
Discussion started by: JamieMurry
8 Replies

4. Shell Programming and Scripting

using perl or awk to print output

suppose u have file File A A -> G C->D A -> R P->A File B A=1 C=2 D=3 E=4 F=5 G=6 H=7 I=8 K=9 L=10 M=11 (5 Replies)
Discussion started by: cdfd123
5 Replies

5. Shell Programming and Scripting

Find Hard Link

Goodmorning everybody. A question: How can i match if a file is an hard link or not? (6 Replies)
Discussion started by: Guccio
6 Replies

6. AIX

Copy huge files system

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)
Discussion started by: Mr.AIX
28 Replies

7. AIX

How to Link FS to 2 directories?

Hi Experts, How do i link FS /lhome to 2 directories /u and /home . Please advise. Many Thanks, RG (6 Replies)
Discussion started by: EngnrRG
6 Replies

8. Shell Programming and Scripting

Copy data form File A and Create File B

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)
Discussion started by: asavaliya
7 Replies

9. Shell Programming and Scripting

Massive Copy With Base Directory

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)
Discussion started by: nitrobass24
8 Replies

10. UNIX for Dummies Questions & Answers

Help with Copy Shell Script

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)
Discussion started by: dixer
13 Replies

11. Shell Programming and Scripting

Incremental numbering?

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)
Discussion started by: scribling
7 Replies

12. Programming

Altering a jar file

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)
Discussion started by: risarose87
7 Replies

13. Shell Programming and Scripting

Nifty (and non-working) File Copy Using ls

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)
Discussion started by: LinQ
10 Replies

14. UNIX for Beginners Questions & Answers

Copy pattern inside the file

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)
Discussion started by: arunkumar_mca
8 Replies