11-02-2012
Thank you Pamu. What is the significance of curly braces
{}in this command and why is it placed between cp and the target directory ?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all,
can u please help me in finding all ksh file in directory and including all subdirectories and then copy those files into another directory.
thanks in advance
-bali (4 Replies)
Discussion started by: balireddy_77
4 Replies
2. Shell Programming and Scripting
Hi All,
I am new to UNIX. I will be thankful if some one helps me.
I have to write a shell script for one of the requirement.
I have files created from Jan 2006 to March 2008.
My requirement is to write a script in such a way that
1) To find and copy(not Moving) the files created in the... (2 Replies)
Discussion started by: manas6
2 Replies
3. UNIX for Dummies Questions & Answers
I am wanting to find files within a directory that are over a certain number of days old and copy them to another directory. And unfortunately not having much luck.......is someone able to help.
Would also like to add that there are literally thousands of files that I am wanting to copy in one... (3 Replies)
Discussion started by: hellfyre
3 Replies
4. Shell Programming and Scripting
I will be very grateful if someone can help me with bash shell script that does the following:
I have a list of filenames:
A01_155716
A05_155780
A07_155812
A09_155844
A11_155876
that are kept in different sub directories within my current directory. I want to find these files and copy... (3 Replies)
Discussion started by: manishabh
3 Replies
5. Shell Programming and Scripting
Hi Everybody,
i want a samll help to write a script.
i had source location with :/user/bin (bin contains subdirectories with like names emails etc and had several files in each subdirectory)
and target location with :/usr/scripts (having same subdirectories names and had some files)... (1 Reply)
Discussion started by: Reddy482
1 Replies
6. UNIX for Dummies Questions & Answers
Ok i have three directories
Destination - /u/dir1 (has subdirectories dir2 which also has subdirectory dir3)
Source1 - /u/test/files/dir1/dir2/dir3
Source2 - /u/out/images/dir1/dir2/dir3
What i would like to do is copy everything from Source1 and Source2 into the Destination directory.... (3 Replies)
Discussion started by: ziggy25
3 Replies
7. UNIX for Dummies Questions & Answers
I have a folder will a lot of documents (pdf, xls, doc etc.) which users have uploaded but only 20% of them are currently linking from my html files. So my goal is to copy only the files which are linked in my html files from my Document directory into another directory.
Eg: My documents exist... (5 Replies)
Discussion started by: ankitha
5 Replies
8. Red Hat
I have directory that has some billion file inside , i tried copy some files for specific date but it's always did not respond for long time and did not give any result.. i tried everything with find command and also with xargs..
even this command find . -mtime -2 -print | xargs ls -d did not... (2 Replies)
Discussion started by: before4
2 Replies
9. Shell Programming and Scripting
How to copy files from one directory to another directory with the subfolders copied.
If i have folder1/sub1/sub2/* it needs to copy files to folder2/sub1/sub2/*.
I do not want to create sub folders in folder2.
Can copy command create them automatically?
I tried cp -a and cp -R but did... (4 Replies)
Discussion started by: santosh2626
4 Replies
10. UNIX for Dummies Questions & Answers
Very new to shell scripting. Not sure if my title is correct but I will try and explain.
Directory has 100+ files with this format, " ABCD_ABC_Abc_AB0126.abc ". When a new file gets created, the 16-19 characters in the file name gets incremented by 1. Ex...todays most recent file is... (14 Replies)
Discussion started by: askvip
14 Replies
LEARN ABOUT DEBIAN
perlreq::utils
PerlReq::Utils(3pm) User Contributed Perl Documentation PerlReq::Utils(3pm)
NAME
PerlReq::Utils - auxiliary routines for B::PerlReq, perl.req and perl.prov
DESCRIPTION
This module provides the following convenience functions:
path2mod
Convert file path to module name, e.g. File/Find.pm -> File::Find.
mod2path
Convert module name to file path, e.g. File::Find -> File/Find.pm.
path2dep
Convert file path to conventional dependency name, e.g. File/Find.pm -> perl(File/Find.pm). Note that this differs from RedHat
conventional form perl(File::Find).
mod2dep
Convert module name to conventional dependency name, e.g. File::Find -> perl(File/Find.pm). Note that this differs from RedHat
conventional form perl(File::Find).
verf
Format module version number, e.g. 2.12 -> 2.120. Currently truncated to 3 digits after decimal point, except for all zeroes, e.g.
2.000 -> 2.0.
Update. The algorithm has been amended in almost compatible way so that versions do not lose precision when truncated. Now we allow
one more .ddd series at the end, but .000 is still truncated by default, e.g. 2.123 -> 2.123, 2.123456 -> 2.123.456.
verf_perl
Format Perl version number, e.g. 5.005_03 -> 1:5.5.30.
sv_version
Extract version number from B::SV object. v-strings converted to floats according to Perl rules, e.g. 1.2.3 -> 1.002003.
argv
Obtain a list of files passed on the command line. When command line is empty, obtain a list of files from standard input, one file
per line. Die when file list is empty. Check that each file exists, or die otherwise. Canonicalize each filename with
"File::Spec::rel2abs()" function (which makes no checks against the filesystem).
inc Obtain a list of Perl library paths from @INC variable, except for current directory. The RPM_PERL_LIB_PATH environment variable, if
set, is treated as a list of paths, seprarated by colons; put these paths in front of the list. Canonicalize each path in the list.
Finally, the RPM_BUILD_ROOT environment variable, if set, is treated as installation root directory; each element of the list is then
prefixed with canonicalized RPM_BUILD_ROOT path and new values are put in front of the list.
After all, only existent directories are returned.
explode
Split given filename into its prefix (which is a valid Perl library path, according to the inc() function above) and basename. Return
empty list if filename does not match any prefix.
AUTHOR
Written by Alexey Tourbin <at@altlinux.org>.
COPYING
Copyright (c) 2004 Alexey Tourbin, ALT Linux Team.
This is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
SEE ALSO
B::PerlReq, perl.req, perl.prov
perl v5.14.2 2011-11-05 PerlReq::Utils(3pm)