Try this...
If the above code is printing the correct "mv" commands, then un-comment the "mv" statements, remove the "echo" statements and execute the script again.
--ahamed
Hi all
Is it possible to copy a structure of a directory only.
e.g.
I have a file with the following entries that is a result of a find :-
/dir1/dir2/file.dbf
/dir1/dir2/dir3/file1.dbf
/dir1/file.dbf
I want to copy these to a directory and keep the structure however starting at a new dir... (8 Replies)
Hi,
I am trying to write a script that will move all the files from source directory structure(multiple levels might exist) to destination directory structure. If a sub folder is source doesnot exist in destination then I have to skip and goto next level. I also need to delete the files in... (4 Replies)
Hello:
I have a large amout of image files that will be stored in Solaris machine. I read some posts here, but still not sure what to do, please advise. Thanks.
The question is:
shoudl i put all these files in as many level of directories, or put in 2-3 level directories? i.e.... (3 Replies)
Hi
How to create a directory structure with getting input from a file.
I have file in that following lines are written.
./activemq-4.1.2/activemq-core-4.1.2.jar
./activemq-4.1.2/backport-util-concurrent-2.1.jar
./camel-1.4.0/apache-camel-1.4.0.jar
./camel-1.4.0/lib/activation-1.1.jar... (12 Replies)
Hi All,
I am new user of shell scripting has come up with a problem. that I have a directory structure like :
Home
|
|--------A
| |----trunk
| |-------A_0_1/
| |
| |-------A_0_2/
|
|--------B
| ... (6 Replies)
Hi,
I have a huge directory structure with multiple directories and subdirectories in each of the directory.
i am trying to find the various file extensions in the directory structure and put them into a file.
is there any way through which i can accomplish this (4 Replies)
Hi All,
im a new guy if it comes to Unix. I am trying to auto categorize Nzbget downloads the most basic way. I already manage to find files within the directory i'm at and move them with if check to a certain dir. Unfortunately this command is restricted to the directory i'm at and does not... (2 Replies)
Hello All,
I am trying to write a script to:-
1. Traverse entire file system, look for directories which has .git directory in it
2. Rename the immediate parent directory to <orignal_name.git>
3. Traverse new file structure and look for all directories with <original_name>.git
4. cd to... (2 Replies)
Hi - I want to compare permissions of the directory structure and files beneath it with permissions one week back on same directory structure and files beneath it. if any changes to permissions of any file or directory permissions send an email. I am not sure how to list the permissions of all... (1 Reply)
Hi All,
is there any work around to generate the file and directory structure like below at left side at Output? and exclude all file except .abc .txt
Current Directory structure
|-------------files
|---------------Share
|-----------------dir1
|-----------------dir2... (11 Replies)
Discussion started by: heros
11 Replies
LEARN ABOUT DEBIAN
gfs_rename
GFS_RENAME(3)GFS_RENAME(3)NAME
gfs_rename - change the name or location of a file
SYNOPSIS
#include <gfarm/gfarm.h>
char *gfs_rename (char * gfarm_url_from, char * gfarm_url_to);
DESCRIPTION
gfs_rename renames a file or directory gfarm_url_from to gfarm_url_to.
If gfarm_url_to already exists, it will be replaced. In this case, when gfarm_url_from is a file gfarm_url_to also must be a file, when
gfarm_url_from is a directory, gfarm_url_to must be a empty directory.
Gfs_rename() can't rename a directory to a subdirectory of itself.
RETURN VALUES
NULL The function terminated successfully.
GFARM_ERR_NO_MEMORY
Insufficient memory was available.
GFARM_ERR_AUTHENTICATION
User authentication failed when connecting to gfmd(8).
GFARM_ERR_PERMISSION_DENIED
The parent directory of gfarm_url_from or gfarm_url_to did not allow write permission.
GFARM_ERR_INVALID_ARGUMENT
A attempt was made to rename the directory gfarm_url_from to a subdirectory of itself.
GFARM_ERR_NO_SUCH_OBJECT
gfarm_url_from does not exist.
GFARM_ERR_IS_A_DIRECTORY
gfarm_url_to is a existing directory, though gfarm_url_from is not a directory.
GFARM_NOT_IS_A_DIRECTORY
gfarm_url_to is not a directory. though gfarm_url_from is a directory.
Others An error except the above occurred. The reason is shown by its pointed strings.
Gfarm 13 November 2006 GFS_RENAME(3)