10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys,
I need a solution to copy files and folders without using cp-r , cp-R or any variants. So i need to code it manually. I allready have a loop
#!bin/bash
IFS=$'\n'
if test "$1" = ""
then
wd=pwd
else
wd=$1
fi
for file in $(find $1)
do
if... (1 Reply)
Discussion started by: Wolverine89
1 Replies
2. 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
3. Shell Programming and Scripting
Hi experts
cp bin root src /mnt
but not copy bin/bigfile
any help?
( I post this thread in the "redhat" forum wrongly, I don't know how to withdraw that question in that wrong forum)
Thanks (6 Replies)
Discussion started by: yanglei_fage
6 Replies
4. UNIX for Dummies Questions & Answers
I use (cp new folder directory), but it just makes a new folder, i want to copy everything in a directory not the actual directory. (10 Replies)
Discussion started by: wiinick
10 Replies
5. UNIX for Dummies Questions & Answers
Mi question is how can you copy only de three of directory and not the files in it.
Only a need the three of directorys not the files (6 Replies)
Discussion started by: enkei17
6 Replies
6. UNIX for Dummies Questions & Answers
Hello all,
I've been researching this problem for days, and have gotten no luck . =/
How do you copy a file to another directory without being in the same directory as the file? So, for example, say I wanted to copy the file 'my.txt' that is in the directory ' /export/hom0/user/asdf ' to the... (9 Replies)
Discussion started by: kvnqiu
9 Replies
7. Shell Programming and Scripting
Hi,
I have to copy last modified Directory to another directory.How can i Do using pipe or redirect
cp -R 'ls -lrt|tail -1' test is not working.
please help. (3 Replies)
Discussion started by: shaveta
3 Replies
8. Shell Programming and Scripting
Hello folks hope all are doing well, i need to compress directories with range, i have total directories from 000-199
and i want to copy directories from 010 onwards to 020 meants total 11 directories, please suggest what regex will i use.
Thanks,
Bash (2 Replies)
Discussion started by: learnbash
2 Replies
9. Shell Programming and Scripting
Hi,
I have a folder that has about 100 directories. They all have different names. I need to do a find and copy of only directories (and their files) that start with ABC.
There are directory names as ABCDE,ABCDG,ABCHT and so on.
I tried using the AB* but that doesn't work. Can someone... (4 Replies)
Discussion started by: bbbngowc
4 Replies
10. UNIX for Dummies Questions & Answers
Hi All,
I am newbie for Unix. I want to copy a directory from one location to other. Can any one help me by providing the command to do following task.
thanks in advance,
Rakesh (2 Replies)
Discussion started by: rakeshvthu
2 Replies
RFIO_RCP(3) Rfio Library Functions RFIO_RCP(3)
NAME
rfio_rcp - third party copy of a file
SYNOPSIS
#include <sys/types.h>
#include "rfio_api.h"
int rfio_rcp (char *source, char *destination, int timeout);
DESCRIPTION
rfio_rcp triggers a third party copy of a file.
source specifies the physical path of the source file.
destination
specifies the physical path of the file at destination.
timeout
specifies the time after which the copy is cancelled if not completed.
RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.
ERRORS
ENOENT The source file does not exist or a component of destination prefix does not exist.
EACCES Search permission is denied on a component of the source or destination prefix or read permission is not granted on the source
file or write permission on the destination parent directory is denied.
EFAULT source or destination is a NULL pointer.
ENOSPC No space to store the new file copy.
ENAMETOOLONG The length of source or destination exceeds CA_MAXPATHLEN or the length of a path component exceeds CA_MAXNAMELEN.
SENOSHOST Host unknown.
SETIMEDOUT Has timed out.
SECOMERR Communication error.
SEE ALSO
Castor_limits(4)
LCG
$Date: 2010-09-07 09:21:01 +0200 (Tue, 07 Sep 2010) $ RFIO_RCP(3)