hey I am providing you the below skeleton of your requirement, going forward please modify it as per your requirement
NOTE: I have not tested it in any environment.
hi all,
i'm looking for a bash or tcsh script that will clone an empty dir tree 'over' another tree ...
specifically, i'd like to:
(1) specify a src directory
(2) list the directory tree/hiearchy beneath that src dir, w/o files -- just the dirs
(3) clone that same, empty dir hierarchy to... (2 Replies)
hi
i have a script
compareFiles()
{
find /tmp/Satya -type f | \
while read filename1
do
echo "----------------------------------------$filename1"
find /tmp/Satya -type f | \
while read filename2
do
if diff $filename1 $filename2
then
echo "Both files... (3 Replies)
I have created a directory structure and under the directory subdirectories and files are there.I need to move the entire thing
to another path.How can i write a script to do that.
currently the path of files is as below :
/data1/serial/mcycle/archive : under this path differnt sub dir exist ... (6 Replies)
Hi,
I want to Move files from one dir to another dir on same mount point.
The source dir may contain subdir or files within it.
Search the files or subfolder which is older then a given datetime .
Move the file recursively and after each successful move of file make an entry to log... (2 Replies)
Hey all,
i want to copy only the file names from an ftp server (directory and all sub directory) to a text file in another server (non ftp), i.e. i want to recursively move through directories and copy only the names to a text file.
any help is appreciated...thank you in advance (1 Reply)
Hi, I am a unix newbie.I need to write a shell script to move my oracle READ WRITE datafiles from one serevr to another. I need to move it from /u01/oradata/W1KK/.. to /u01/oradata/W2KK,
/u02/oradata/W1KK/.. to /u02/oradata/W2KK.
That is, I actaully am moving my datafiles from one database to... (2 Replies)
I am very new to unix as well as shell scripting.
I have to write a script for the following requirement. In have to list all the files in directory and its sub directories along with file path and size of the file
Please help me in this regard and many thanks in advance. (3 Replies)
Hi frnds
The following is the code
#!/bin/ksh
##############################################################
# #
# Created by eDB Dev - 27-May-2011 #
# ... (1 Reply)
Hi Guys ,
I want create files Dire and Sub Dire. as same time using variable.
EX:
x1="/hk/Pt/put/NC/R1.txt"
x2="/hk/pt/Put/Ot/NC/RN.txt"
And i want delete all after done with my script.
Thanks (2 Replies)
I have searched this quite a long time but couldn't find the right method for me to use. I need to assign read write permission to the user for specific directories and it's sub directories and files. I do not want to use ACL. I do not want to assign user the same group of that directories too.... (0 Replies)
Discussion started by: blinkingdan
0 Replies
LEARN ABOUT HPUX
mvdir
mvdir(1M)mvdir(1M)NAME
mvdir - move a directory
SYNOPSIS
dir newdir
DESCRIPTION
moves one directory tree into another existing directory (within the same file system), or renames a directory without moving it.
dir must be an existing directory.
If newdir does not exist but the directory that would contain it does, dir is moved and/or renamed to newdir. Otherwise, newdir must be an
existing directory not already containing an entry with the same name as the last pathname component of dir. In this case, dir is moved
and becomes a subdirectory of newdir. The last pathname component of dir is used as the name for the moved directory.
refuses to move dir if the path specified by newdir would be a descendent directory of the path specified by dir. Such cases are not
allowed because cyclic sub-trees would be created as in the case, for example, of which is prohibited.
does not allow directory to be moved.
Only users who have appropriate privileges can use
EXTERNAL INFLUENCES
International Code Set Support
Single- and multi-byte character code sets are supported.
AUTHOR
was developed by OSF and HP.
SEE ALSO cp(1), mkdir(1), mv(1).
STANDARDS CONFORMANCE mvdir(1M)