Hi,
I want to find whether a dir "temp" is present inside a dir. It should get a dir a input and search recursively within that directory to check whether temp is present and return 1 or return 0 if it is not present anywhere inside the directory/sub-directory. I know we can use readdir in the... (1 Reply)
Hi,
I have hundered's of files of the name
CMP_PORT_IN_P200903271623042437_20090328122430_err.xml in error directory of todays date ie 20090328 and in the file name 5th field specifies date only now i want to move all files of 20090328 to another directory i.e reprocess directory.
So... (3 Replies)
Hello!!
I have directories from 2008, with files in them. I want to create a script that will find the directoried from 2008 (example directory:
drwxr-xr-x 2 isplan users 1024 Nov 21 2008 FILES_112108), delete the files within those directories and then delete the directories... (3 Replies)
Hi,
I am new to script and I want find one string from multiple files in diff directories and put that out put to new file.
Like I have A,B & C directories and each has multiple files but one file is unic in all the directories like COMM.txt
Now I want write script to find the string... (8 Replies)
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)
Need a script to move the files from one dir to other dir and at the same time it has to read the log in the source dir. Please help me ASAP. (4 Replies)
Hello Comunity
I am trying to make a bash shell script that it copies files and subdirs(with files) to a new dir. I would like the dest_dir to contain only subdirectories with files not other subdirs inside.
it called : cpflatdir src_dir dest_dir
Pleaze help me!
Thank you in... (2 Replies)
Hello all,
I'm very new to shell scripting and need quite urgently to do this thing for my student job. I have a directory called "vectors" with a bunch of files all named ".vector". also i have for each of those files a directory with the name . I now want to move each of those *.vector files... (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 SUSE
crm_diff
CRM_DIFF(8) [FIXME: manual] CRM_DIFF(8)NAME
crm_diff - identify changes to the cluster configuration and apply patches to the configuration files
SYNOPSIS
crm_diff [-?|-V] [-o filename] [-O string] [-p filename] [-n filename] [-N string]
DESCRIPTION
The crm_diff command assists in creating and applying XML patches. This can be useful for visualizing the changes between two versions of
the cluster configuration or saving changes so they can be applied at a later time using cibadmin.
OPTIONS --help, -?
Print a help message.
--original filename, -o filename
Specify the original file against which to diff or apply patches.
--new filename, -n filename
Specify the name of the new file.
--original-string string, -O string
Specify the original string against which to diff or apply patches.
--new-string string, -N string
Specify the new string.
--patch filename, -p filename
Apply a patch to the original XML. Always use with -o.
--cib, -c
Compare or patch the inputs as a CIB. Always specify the base version with -o and provide either the patch file or the second version
with -p or -n, respectively.
--stdin, -s
Read the inputs from stdin.
EXAMPLES
Use crm_diff to determine the differences between various CIB configuration files and to create patches. By means of patches, easily reuse
configuration parts without having to use the cibadmin command on every single one of them.
1. Obtain the two different configuration files by running cibadmin on the two cluster setups to compare:
cibadmin -Q > cib1.xml
cibadmin -Q > cib2.xml
2. Determine whether to diff the entire files against each other or compare just a subset of the configurations.
3. To print the difference between the files to stdout, use the following command:
crm_diff -o cib1.xml -n cib2.xml
4. To print the difference between the files to a file and create a patch, use the following command:
crm_diff -o cib1.xml -n cib2.xml > patch.xml
5. Apply the patch to the original file:
crm_diff -o cib1.xml -p patch.xml
FILES
/var/lib/heartbeat/crm/cib.xml--the CIB (minus status section) on disk. Editing this file directly is strongly discouraged.
SEE ALSO
???
AUTHOR
crm_diff was written by Andrew Beekhof.
[FIXME: source] 07/05/2010 CRM_DIFF(8)