Hi, I am trying to figure out how to have a folder created in multiple directories. For example /home is where we have over 1500 staff members directories, the staff members name is the name of directory under /home. I need to have a folder called "Desktop" created in every staff members directory.... (15 Replies)
I have a report file that is generated every day by a scheduled process.
Each day the file is written to a directory named .../blah_blah/Y07/MM-DD-YY/reportmmddyy.tab
I want to copy all of this reports to a separate directory without having to do it one by one.
However, if I try
cp... (3 Replies)
Please help - I need to copy a single file to multiple directories.
Dir structure:
Parent_Directoy
Filename1
Child_Directory1
Child_Directory2
Child_Directory3
Child_Directory4
....
So I need to copy Filename1 to all of the... (2 Replies)
Hello all,
I'm trying to accomplish that if a file gets written to folder /path/to/a/ it gets automatically copied into /path/to/b/ the moment its get written.
I thought of writing a shell script and cron it that every X amount of minutes it copies these files over but this will not help me... (2 Replies)
Ok question number two: I'd like to search a directory for multiple file types (rar, txt, deb) and depending on what's found, copy those files to folders named Rar, TextFiles, and Debs. I'm looking for speed here so the faster the script the better. I want it to be a function that I pass 1 argument... (4 Replies)
Please help ,
I am in an urgent need, Please help
nawk '{for(i=1;i<=NF;i++){printf("%s\n",$i)}}' filename | sed 's/.*com//' | nawk '/pdf/ {printf("F:%s\n",$0)}' | while read line; do mv $line /images/; done
the above script works for without spaces but,My path is also having some space... (3 Replies)
I have several directories and all those directories have .dat files in them. I want to copy all those .dat files to one directory say "collected_directory"
The problem is I don't want to overwrite files. So, if two file names match, I don't want the old file to be overwritten with a new one.
... (1 Reply)
my directory structure is like below:
basedir\
p.txt
q.htm
r.java
b\
abc.htm
xyz.java
c\
p.htm
q.java
rst.txt
my requirement is i want to copy all the files and directories... (0 Replies)
Hi All Genious,
I want to copy a file name XYZ .In a directory /HOME/dir/IXOS1/dir1
which contain multiple directories named not in pattern want to copy the XYZ in all of the directories available on path /HOME/dir/IXOS1/dir1 .
Thanks in advance . (2 Replies)
Dear all
I have a multiple directories, say for example org1, org2, org3 ..... org100 and each directory having a file namely dnaG.fasta. I need to copy all the dnaG.fasta file from each directory and paste in another directory fastconcatg. Therefore, my script has to copy dnaG.fasta file from... (5 Replies)
Discussion started by: dineshkumarsrk
5 Replies
LEARN ABOUT OSF1
dohash
dohash(8) System Manager's Manual dohash(8)NAME
dohash, undohash - Hashes or unhashes IMAP configuration directories
SYNOPSIS
/usr/sbin/dohash [-f] [-h] [-i]
/usr/sbin/undohash
OPTIONS
The following options are available only for the dohash command: Forces the hashing process to continue even if the command encounters
errors. Prints a usage message for the command. Runs the hashing process interactively.
DESCRIPTION
The dohash command converts the IMAP configuration directories from the format for older versions of the Cyrus IMAP4 Revision 1 server to
the new format for Version 1.6.1 or higher.
Starting with Version 1.6.1 of the server, the IMAP user files in the quota and user directories are stored in a through z subdirectories,
sorted by the first character of each user name. This arrangement reduces the number of entries in a given directory and consequently
increases performance and scalability. The dohash command creates the a through z subdirectories and sorts the existing IMAP files as
described; the undohash command reverses this process, in case you need to revert to a previous version of the server.
You can optionally sort the users' directories in the IMAP mail spool in the same manner if you enable the hashimapspool option in the
/etc/imapd.conf file before invoking the dohash command. See imapd.conf(4) for more information.
Note that you must be logged in as the imap user to use the dohash command; otherwise, the newly-created subdirectories will not have the
proper ownership.
EXAMPLES
The following example shows output from the dohash command: # /usr/sbin/dohash configuration directory /var/imap... hashing user directory
hashing quota directory done hashing
In this example, the configuration directory is /var/imap; therefore, you could check that the dohash command has successfully hashed the
directories by using the ls command as follows: # ls /var/imap/quota /var/imap/user /var/imap/quota: a b c d e f g h i j k l m
n o p q r s t u v w x y z
/var/imap/user: a b c d e f g h i j k l m n o p q r s t u v w x y z
The slash () indicates line continuation.
FILES
Configuration file for the IMAP server. Specifies the location of the IMAP configuration directory.
SEE ALSO
Commands: imapd(8)
Files: imapd.conf(4)
Network Administration
dohash(8)