hi all,
i would like to search in a directory. all files they were found shoul be opend and looked about a keyword. if keyword is found i want to see the name of the file. i've rtfm of find and have a command like this :
find /etc -exec cat \{}\ | grep KEYWORD
but don't work, and :
find... (4 Replies)
Hi,
I want to compare two files. Files will look like as follows:
file1:
ASDFGHJU|1234567890123456
QWERTYUI|3456789098900890
file2:
ZXCVBVNM|0987654321234567
POLKIJUYH|1234789060985478
output file should be:
ASDFGHJU|1234567890123456
QWERTYUI|3456789098900890
Thnaks in advance (6 Replies)
Hi,
Iam having the two files as follows:
file1:
ASQWEDFR09876543121234512
POIUYTREW09876512345676788
ZXCVBNMKS1209888888888888
file2:
ASQWEDFR09876543121234516 asdcvfgbtg@abc.com 0000000-90-1239--2008 8990----
CXADFGTU09876543121234789 asdcvfgbtg@abc.com ... (14 Replies)
hi All,
my query...
1.I Have to search for the files in the root directory.
2.i have to search for a pattern in all the files in the root directory and then replace them with a new pattern.
3.Rename the file
Explanation:
if ABC is the root folder and has 3 subfolders and there are 15... (9 Replies)
Hi ,
I have a file myhost.txt which contains below,
127.0.0.1 localhost
1.17.1.5 atrpx958
11.17.10.11 atrpx958zone nsybhost
I need to append words only after "atrpx958" like 'myhost' and 'libhost' and not after atrpx958zone.
How to search the word atrpx958 only in... (2 Replies)
Hello,
I want to search a string/substring from the second column in file in another file and append the first found record in second file to the end of the record in the first file. Both files are tab delimited.
All lines with KOG in col13 do not need to be searched as it will not be... (7 Replies)
Hi everyone,
I am new to Unix and need help writing a script that can ask user for an input, then search that input within a file
I know will have to use the read and grep commands, anyone can give me somewhere to start would help
Task: Write a script to display... (1 Reply)
Hi everyone,
I am new to Unix and need help writing a script that can ask user for an input, then search that input within a file
I know will have to use the read and grep commands, anyone can give me somewhere to start would help
Task: Write a script to display which volume pool a given... (1 Reply)
Hi Don, this is not homework question. I work for a Credit card company and my development goal this year is to learn Unix. I would love if others can help me get started, thanks.
Hi everyone
I am new to Unix and need help writing a script that can ask user for an input, then search that input... (2 Replies)
Discussion started by: 12ic11
2 Replies
LEARN ABOUT SUSE
crm_attribute
CRM_ATTRIBUTE(8) [FIXME: manual] CRM_ATTRIBUTE(8)NAME
crm_attribute - manipulate attributes in the CIB
SYNOPSIS
crm_attribute [options]
DESCRIPTION
The crm_attribute command queries and manipulates node attributes and cluster configuration options that are used in the CIB.
OPTIONS --help, -?
Print a help message.
--verbose, -V
Turn on debug information.
Note
Increase the level of verbosity by providing additional instances.
--quiet, -Q
When doing an attribute query using -G, print just the value to stdout. Use this option with -G.
--get-value, -G
Retrieve rather than set the preference.
--delete-attr, -D
Delete rather than set the attribute.
--attr-value string, -v string
Value to set. This is ignored when used with -G.
--node-uuid node_uuid, -u node_uuid
Specify the UUID of the node to change.
--node-uname node_uname, -U node_uname
Specify the uname of the node to change.
--set-name string, -s string
Specify the set of attributes in which to read or write the attribute.
--attr-name string, -n string
Specify the attribute to set or query.
--type string, -t type
Determine to which section of the CIB the attribute should be set or to which section of the CIB the attribute that is queried belongs
Possible values are nodes, status, or crm_config.
Additional Options:
+-----------+--------------------+
|Type | Additional Options |
+-----------+--------------------+
|nodes | -(U|u) -n [-s] |
+-----------+--------------------+
|status | -(U|u) -n [-s] |
+-----------+--------------------+
|crm_config | -n [-s] |
+-----------+--------------------+
EXAMPLES
Query the value of the location attribute in the nodes section for the host myhost in the CIB:
crm_attribute -G -t nodes -U myhost -n location
Query the value of the cluster-delay attribute in the crm_config section in the CIB:
crm_attribute -G -t crm_config -n cluster-delay
Query the value of the cluster-delay attribute in the crm_config section in the CIB. Print just the value:
crm_attribute -G -Q -t crm_config -n cluster-delay
Delete the location attribute for the host myhost from the nodes section of the CIB:
crm_attribute -D -t nodes -U myhost -n location
Add a new attribute called location with the value of office to the set subsection of the nodes section in the CIB (settings applied to the
host myhost):
crm_attribute -t nodes -U myhost -s set -n location -v office
Change the value of the location attribute in the nodes section for the myhost host:
crm_attribute -t nodes -U myhost -n location -v backoffice
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_attribute was written by Andrew Beekhof.
[FIXME: source] 07/05/2010 CRM_ATTRIBUTE(8)