07-26-2011
getting the below output.i need to restrict it to a single value . as in grep when i give 3 it will search for 3, 13, 23 etc (where 3 appears) . i need it to display only a single value corresponding to that number.
BSB
CIB
COB
DCI
DIB
DSB
ESB-P
ESB-TOOLS
FareVerify
GCACHE
GWY
IBMSOAMB
IBMSOAWAS
ISM
KESTREL-DEV
kestrel-migration
KESTREL-UAPI
KESTREL-XD
LAMB
LinuxAutomation
MGLNO
PORTAL
repos4
SCMTools
SESTOKEN
SMB
SOA
SPLASH
SSB
STP
TOI
Enter the REPO # :
3
3 : COB
13 : IBMSOAWAS
23 : repos4
30 : STP
31 : TOI
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello All,
I am working on korn shell script.i have 2 questions;
1) I have a file and i am able to capture the arrival time.
the arrival time is capturing as 11:30
ls -ltr aaa.bbb.332121312.*.* | awk -F" " '{print $8}'
11:30
my desired output is 113000
can anyone please suggest me... (2 Replies)
Discussion started by: pavan_test
2 Replies
2. UNIX for Advanced & Expert Users
Hi,
I have a file say abc. I get the timestamp in following way:
ls -ltr abc | awk -F" " '{print $6,$7,$8}'
Mar 8 10:23
I need to get the timestamp as :
03-08-2007 10:23:00
Thanks
Sumeet (1 Reply)
Discussion started by: sumeet
1 Replies
3. Shell Programming and Scripting
I wanted to put "|" this sign at starting and at end of every field but its not working with first field like
Currently the out put is :
abc | abc | abc |
xyz | xyz | xyz |
But I want the out put in this form:
| abc | abc | abc |
| xyz | xyz | xyz |
plz help me. (2 Replies)
Discussion started by: akash
2 Replies
4. HP-UX
Hi everybody,
I just need desired ouput from text file which should have folowing format;
"2007-06-25 00:03:32.926+05:30",12354369,"Load","Completed","Rs.-5,556.00",9452217714
"2007-06-25 00:06:57.357+05:30",12354371,"Load","Completed","Rs.-56.00",9415766266
"2007-06-25... (1 Reply)
Discussion started by: prasanth_babu
1 Replies
5. Shell Programming and Scripting
echo '0x3f 0xfa ae 0xeA' | sed '/0x/ y/abcdef/ABCDEF/'
output:
0x3F 0xFA AE 0xEA
echo '0x3f 0xfa ae 0xeA' | sed -r '/0x{2}/ y/abcdefg/ABCDEFG/'
output:
0x3F 0xFA AE 0xEA
my expected output:
0x3F 0xFA ae 0xEA
What I want to achieve is change all hexadecimals to UPPER case(only those... (6 Replies)
Discussion started by: kevintse
6 Replies
6. Shell Programming and Scripting
Below is the my cide which is working fine but I am not getting the output indesired format.there is some problem in alignment.Can someone help me to correct this?
if ];
then
summary=$(
echo -e "Please review the log file of auto coloclean utility.\n";
echo -e... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies
7. UNIX for Dummies Questions & Answers
Hi
I have the following file in the unix named emp.
ID,NAME,SAL,DEPT
101,aaa,2000,10
102,bbb,3000,20
103,ccc,4000,30
104,ddd,5000,40
105,aaa,2000,50
106,bbb,3000,60
107,ccc,4000,70
108,ddd,5000,10
109,aaa,2000,80
I need to save first 3 columns(ID, NAME, SAL) in another file with... (2 Replies)
Discussion started by: alok3141
2 Replies
8. Shell Programming and Scripting
currently I have process from a raw file to this stage
ALTER TABLE "EXCEL_ADMIN"."TC_TXN_VOID" ADD CONSTRAINT "PK_TC_TXN_VOID" PRIMARY KEY ("TC_TXN_IID")
ALTER TABLE "EXCEL_ADMIN"."TC_TXN_AMT" ADD CONSTRAINT "PK_TC_TXN_AMT" PRIMARY KEY ("TC_TXN_AMT_IID")
ALTER TABLE... (10 Replies)
Discussion started by: jediwannabe
10 Replies
9. UNIX for Dummies Questions & Answers
I am reading a file of Linux ( like mentioned below) & the data is represented in a single line like mentioned below:
11/03 4:00 39992 0.098 5.195 0.034 0.001 1.091 182 0.000 0 0.071 4.252 0.033 0.001 666.53
Now i want to print the result in other file something like this :-
39992... (5 Replies)
Discussion started by: Anamica
5 Replies
10. Shell Programming and Scripting
I need to get the current year for the files that has been created today.
Ex-
when i list in unix console it shows
ls -l abc.txt
-rw-rw-r-- 1 user1 user1 33 May 2 08:58 abc.txt
but i need to get as May 2 2013 , i dont need 08:58 is there any command to list it out in that... (7 Replies)
Discussion started by: Prashanth B
7 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)