04-23-2008
Two folder comparison
Testing and testing1 are the directories containing the files which have to be compared.
This script is going to be automated and will be a generic one and will be run by using a java code.so i cant create symbolic links each and every time i need to compare two directories. can the code be modified to suit this purpose?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Oracle procedure create files on UNIX folder on a regular basis. I need to FTP files onto windows server and place the files, based on their name, in the corresponding folders. File name is as follows: ccyymmddfoldernamefile.txt; Folder Name length could be of any size; however, the prefix and... (3 Replies)
Discussion started by: MeganP
3 Replies
2. UNIX for Advanced & Expert Users
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)
Discussion started by: Bashar
2 Replies
3. Windows & DOS: Issues & Discussions
Hello,
I am an amature at UNIX commands and functionality.
Please could you all assist me by replying to my below mentioned querry :
How can I upload a zip folder on a unix path from my windows folder?
Thanks guys
Cheers (2 Replies)
Discussion started by: ajit.yadav83
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I want to extract myfile.war to a folder which is in the same folder with war file.I did this as normal:
jar -xvf myfile.war
But it exploded all the content of file to the same level folder instead of that I was expecting to create a folder called myfile.
This works with tar:
... (0 Replies)
Discussion started by: reis3k
0 Replies
5. Shell Programming and Scripting
This is the file structure:
DESKTOP/Root of Photo Folders/Folder1qweqwasdfsd/*jpg
DESKTOP/Root of Photo Folders/Folder2asdasdasd/*jpg
DESKTOP/Root of Photo Folders/Folder3asdadfhgasdf/*jpg
DESKTOP/Root of Photo Folders/Folder4qwetwdfsdfg/*jpg
DESKTOP/Root of Photo... (4 Replies)
Discussion started by: guptaxpn
4 Replies
6. Shell Programming and Scripting
Hello everyone....
I have a small issue here at work and I am trying to script out a way to automate a fix for it. I have a small number of users (I work in a 1:1 with 6,000 macbooks) that aren't really managed in my deployment. They are managed with a few policies, but the policies are broken... (2 Replies)
Discussion started by: tlarkin
2 Replies
7. Shell Programming and Scripting
I need help to write shell script to copy files from one server to another server.
Source Directory UAE(inside i have another folder Misc with files inside UAE folder).I have to copy this to another server UAE folder( Files should be copied to UAE folder and Misc files should be copied in target... (3 Replies)
Discussion started by: naresh2389
3 Replies
8. Shell Programming and Scripting
Hi Team,
I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder.
Eg:
parent folder --> /Interface/data/test/IN
Sub folder -->/Interface/data/test/IN/Invoice20180607233338
Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies
9. Shell Programming and Scripting
Hi,
I have a script doing backup to synology server, the script create new folder each day with the date as being folder name i.e. 2018-07-30. Just before creating the new folder I want the script to find the oldest folder from the list and delete it including its content.
for example... (3 Replies)
Discussion started by: humble_learner
3 Replies
LEARN ABOUT LINUX
c_rehash
C_REHASH(1SSL) OpenSSL C_REHASH(1SSL)
NAME
c_rehash - Create symbolic links to files named by the hash values
SYNOPSIS
c_rehash [directory] ...
DESCRIPTION
c_rehash scans directories and takes a hash value of each .pem and .crt file in the directory. It then creates symbolic links for each of
the files named by the hash value. This is useful as many programs require directories to be set up like this in order to find the
certificates they require.
If any directories are named on the command line then these directories are processed in turn. If not then and the environment variable
SSL_CERT_DIR is defined then that is consulted. This variable should be a colon (:) separated list of directories, all of which will be
processed. If neither of these conditions are true then /usr/lib/ssl/certs is processed.
For each directory that is to be processed he user must have write permissions on the directory, if they do not then nothing will be
printed for that directory.
Note that this program deletes all the symbolic links that look like ones that it creates before processing a directory. Beware that if you
run the program on a directory that contains symbolic links for other purposes that are named in the same format as those created by this
program they will be lost.
The hashes for certificate files are of the form <hash>.<n> where n is an integer. If the hash value already exists then n will be
incremented, unless the file is a duplicate. Duplicates are detected using the fingerprint of the certificate. A warning will be printed if
a duplicate is detected. The hashes for CRL files are of the form <hash>.r<n> and have the same behavior.
The program will also warn if there are files with extension .pem which are not certificate or CRL files.
The program uses the openssl program to compute the hashes and fingerprints. It expects the executable to be named openssl and be on the
PATH, or in the /usr/lib/ssl/bin directory. If the OPENSSL environment variable is defined then this is used instead as the executable that
provides the hashes and fingerprints. When called as $OPENSSL x509 -hash -fingerprint -noout -in $file it must output the hash of $file on
the first line followed by the fingerprint on the second line, optionally prefixed with some text and an equals sign (=).
OPTIONS
None
ENVIRONMENT
OPENSSL
The name (and path) of an executable to use to generate hashes and fingerprints (see above).
SSL_CERT_DIR
Colon separated list of directories to operate on. Ignored if directories are listed on the command line.
SEE ALSO
openssl(1), x509(1)
BUGS
No known bugs
1.0.0e 2013-02-18 C_REHASH(1SSL)