Hi, I need to change military time to regular time. I know to use case to indicate whether a.m. or p.m. as follows:
case "$hour"
in
0? | 1 ) echo a.m.;;
1 ) echo p.m.;;
* ) echo p.m.;;
esac
My question is how do I add the hour and minute... (2 Replies)
Hi
I am wondering is it possible to combine two greps together
I have two greps.
grep "^,, *\." file
(grep the line which has a '.' in the third column)
grep "=" file
(grep the line which has = anywhere)
How to put them together so that if the content of the file that match either... (1 Reply)
I know this is an easy problem, but I've been struggling with it all morning and finally admit I need help.
I have two files that I need to compare. After doing this the easy way (grep -F) I realize that there are other fields in file2 that match field1 in file1, so I turned to awk.
I want to... (7 Replies)
I have an awk statement that works but I am calling awk twice and I know there has to be a way to combine the two statements into one. The purpose is to pull out just the ip address from loopback1.
cat config.txt | nawk 'BEGIN {FS="\n"}{RS="!"}{if ( $0 ~ "interface loopback1" ) print$4}' | nawk... (5 Replies)
below is something i inherited:
if && && ; then
HOST_SELECT="-m quadcore"
fi
if && && ; then
HOST_SELECT="-m quadcore"
fi
if && && ; then
HOST_SELECT="-m octocore1"
fibelow is what i changed it to:
if && && ; then
HOST_SELECT="-m quadcore"... (2 Replies)
Hi,
Syntax 1:
/usr/bin/svcs -a |grep apache22 | wc -l
2
Syntax 2:
ps -ef | grep wlsdmin | grep -v "grep" | wc -l
3
I need to combine both the above syntax and get 2+3 i.e. 5 as the resultant output.
What's the simplest way to achieve this ? (7 Replies)
Hi,
I have the following two awk statements which I'd like to consolidate into one by piping the output from the first into the second awk statement (rather than having to write kat.txt out to a file and then reading back in).
awk 'BEGIN {FS=OFS=" "} {printf("%s ", $2);for (x=7; x<=10;... (3 Replies)
Hello fellow awkers,
I am trying to combine the following awk statements into 1 so that the results are more accurate:
awk '/\=\+/ { count++ } END { print count}' filename
awk '/\=\?/ { count++ } END { print count}' filename
awk '/\=\-/ { count++ } END { print count}' filename
awk... (8 Replies)
I have a file like
file.
file.TODAY.THISYEAR
file.TODAY.LASTYEARI want to substitute the words in caps with their actual values so that output should look like
file.140805
file.140805.2014
file.140805.2013For this I am reading the file line bye line in an array and using multiple map... (1 Reply)
I'm trying to learn about regular expressions. Let's say I want to list all the files in /usr/bin beginning with "p", ending with "x", and containing an "a".
I know this works:ls | grep ^p | grep x$ | grep abut I'm thinking there must be a way to do it without typing grep three times. Some of my... (9 Replies)
Discussion started by: Xubuntu56
9 Replies
LEARN ABOUT LINUX
coseventchanneladmin
CosEventChannelAdmin(3erl) Erlang Module Definition CosEventChannelAdmin(3erl)NAME
CosEventChannelAdmin - The CosEventChannelAdmin defines a set if event service interfaces that enables decoupled asynchronous communica-
tion between objects and implements generic (untyped) version of the OMG COSS standard event service.
DESCRIPTION
The event service defines two roles for objects: the supplier role and the consumer role. Suppliers supply event data to the event channel
and consumers receive event data from the channel. Suppliers do not need to know the identity of the consumers, and vice versa. Consumers
and suppliers are connected to the event channel via proxies, which are managed by ConsumerAdmin and SupplierAdmin objects.
There are four general models of communication. These are:
* The canonical push model. It allows the suppliers of events to initiate the transfer of event data to consumers. Event channels play
the role of Notifier . Active suppliers use event channel to push data to passive consumers registered with the event channel.
* The canonical pull model. It allows consumers to request events from suppliers. Event channels play the role of Procure since they pro-
cure events on behalf of consumers. Active consumers can explicitly pull data from passive suppliers via the event channels.
* The hybrid push/pull model. It allows consumers request events queued at a channel by suppliers. Event channels play the role of Queue
. Active consumers explicitly pull data deposited by active suppliers via the event channels.
* The hybrid pull/push model. It allows the channel to pull events from suppliers and push them to consumers. Event channels play the
role of Intelligent agent . Active event channels can pull data from passive suppliers to push it to passive consumers.
To get access to all definitions, e.g., exceptions, include necessary hrl files by using:
-include_lib("cosEvent/include/*.hrl").
There are seven different interfaces supported in the service:
* ProxyPushConsumer
* ProxyPullSupplier
* ProxyPullConsumer
* ProxyPushSupplier
* ConsumerAdmin
* SupplierAdmin
* EventChannel
Ericsson AB cosEvent 2.1.10 CosEventChannelAdmin(3erl)