A cheap way to do it is to use the output of find to create a bunch of mkdir statements.
The output of this (from the directory you want to start in) will print the directory tree, and no files. Throw a "mkdir " at the beginning of each line and I think you'd be set.
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)
i have a text file as.
/database/sp/NTR_Update_Imsi_List.sql
/database/sp/NTR_Update_Imsi_Range_List.sql
/database/sp/NTR_Vlr_Upload.sql
/database/tables/StatsTables.sql
/mib/ntr.mib
/mib/ntr.v2.mib
/scripts/operations/ntr/IMSITracer.ph
/scripts/operations/ntr/IMSITracer.pl ... (3 Replies)
I have the below code to recurse through a given file path. I am able to go to the leaf level once recursively but traversing out is not possible as the required varaibles don't have the values on return. Both typeset and local don't work for my variable definitions. I have the o/p of the sample... (2 Replies)
Hello Unix Gurus Who I Hope Reads This,
I have quasi-inherited control over a Linux cluster at a university research lab. The post-doc that set it up is gone, and the person in charge of administering the cluster doesn't know a ton about Linux. Amongst other things, I want to use the cluster... (0 Replies)
Hello,
I am not sure how feasible is it, but trying to copy/create the folders from one box to another. I dont want to copy the content of folder otherwise it'd be too much of data..
The folder structure is quite complex (in deep hierarchy) and its a big effort manually ..
Please... (5 Replies)
Hello All,
I have got a dev server and a production server will call it as D server and P server.
I have a dir structure in my D server and i need to create the same dir structure in P server also using a shell script.
If i do a find . in my D server, i am getting an o/p like :-
.
./vio... (9 Replies)
Hi ,
I have a scenario where i need to copy the iter to another local variable , where iter is of type MCC_T_SYS_ADDRINFO *iter .
struct addrinfo {
int ai_flags;
int ai_family;
int ai_socktype;
int ai_protocol;
... (5 Replies)
Discussion started by: breezevinay
5 Replies
LEARN ABOUT OSF1
rcinet
rcinet(8) System Manager's Manual rcinet(8)NAME
rcinet - Restarts, starts, or stops Internet network services on the system
SYNOPSIS
/usr/sbin/rcinet option
OPTIONS
You must specify one of the following options with the rcinet command: Restarts the network on the system. Starts the network on the sys-
tem. Stops the network on the system.
You can restrict the restart, start, or stop operation to either IPv4 or IPv6 networks by specifying inet or inet6, respectively, as the
second parameter. By default, the script assumes both IPv4 and IPv6.
DESCRIPTION
The rcinet script allows system administrators to restart, start, or stop the Internet network services on the system while it is running
in multiuser mode by using one of the options.
RESTRICTIONS
Superuser privilege is required.
Warn users that the system is being removed from the network.
File systems that were not mounted using the /etc/fstab file or the automount command must be unmounted with the umount command. You must
remount these file systems using the mount command after the network is started on your system.
ERRORS
The rcinet script prints an error message to stderr if the network is not configured on the system.
FILES
The network shell scripts are located in /sbin/init.d with symbolic links in /sbin/rc0.d and /sbin/rc3.d.
SEE ALSO
Commands: mount(8)
Network Administration
rcinet(8)