12-01-2011
It's working! :)
Thanks anchal_khare
I won't be fired.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I want to get a list of all the files in the current directory that have two patterns. I can do first grep of one pattern and then with the output do the grep of the second pattern.
if the output of 1st pattern search results in many files, it is very difficult to do a grep of the 2nd pattern for... (1 Reply)
Discussion started by: tselvanin
1 Replies
2. Shell Programming and Scripting
Hi
I have 3 patterns for example to be searched.
These three patterns are available in file1.
The patterns to be searched are in file2.
I want to search the pattern of file1 to file2.
Can any one help with example?
Regards
Dhana (1 Reply)
Discussion started by: dhanamurthy
1 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
I have a log file which is more than 1GB, i need to take count from the log file for two strings. i am using the below command but it take a long time to excetue, i need to tune this. Please help me
cat /logs/gcbs/gcbsTrace.log | grep -i "ViewStatementBusinessLogic" | grep -c -i... (8 Replies)
Discussion started by: senthilkumar_ak
8 Replies
4. Shell Programming and Scripting
I need a simple script to get all lines between 2 Patterns,
e.g.
.............
.............
114456723: testing Script
Alpha
Beta
114459234: testing Done
.............
.............
It should give all the lines in between 114456723 and 114459234, including these as well.
Any... (2 Replies)
Discussion started by: gurpreet470
2 Replies
5. Shell Programming and Scripting
i want to match a pattern
* ^Subject:.*<\hello\>
for my emails to me that has 'hello' anywhere in the subject. (3 Replies)
Discussion started by: oxoxo
3 Replies
6. Shell Programming and Scripting
I have a file with many rows.
I want to grep for multiple patterns from the file.
For eg:
XX=123|YY=222|ZZ=566
AA=123|EE=222|GG=566
FF=123|RR=222|GG=566
DD=123|RR=222|GG=566
I want the lines which has both XX and ZZ.
I know I can get it like this.
grep XX file | grep YY
But... (10 Replies)
Discussion started by: tene
10 Replies
7. Shell Programming and Scripting
Hi All,
I've been trying solve this with a simple command but not having much luck. I have a file like this:
Line 1: random_description 123/alert/high random_description2 356/alert/slow
Line 2: random_description3 654/alert/medium
Line 3: random_description4 234/alert/critical
I'm... (7 Replies)
Discussion started by: joe19
7 Replies
8. UNIX for Dummies Questions & Answers
I have a file with the following text:
grep \$
grep \\$
grep \\\$
grep '\$'
grep '\'$'
grep \\
grep \\\\
grep "\$"
grep '"$'
grep "$"
When I perform these same commands on this file, the result are never what I would expect them to be. Could someone please comment on the results and... (3 Replies)
Discussion started by: uran101
3 Replies
9. Shell Programming and Scripting
Hi Experts,
I have a log file like this.I need to filter the Index name and elapsed time(only created ).
06:36:39 SQL> create index XYZ_F75 on XYZ
06:36:39 2 ("GRP_ID", "_ID") parallel 64 nologging
06:36:39 3 tablespace XARGS_IDX
06:36:39 4 ;
Index created.
Elapsed:... (2 Replies)
Discussion started by: navsan420
2 Replies
10. Shell Programming and Scripting
I am trying to grep a variable with multiple lines with multiple patterns
below is the pattern list in a variable called "grouplst", each pattern is speerated by "|"
grouplst="example1|example2|example3|example4|example5|example6|example7"
I need to use the patterns above to grep a... (2 Replies)
Discussion started by: ajetangay
2 Replies
LEARN ABOUT DEBIAN
libhandoff
LIBHANDOFF0(3) Copyright FSF 1996-2006 LIBHANDOFF0(3)
NAME
libhandoff - handoff library for GPE calendar.
SYNOPSIS
extern GType handoff_get_type(void);
typedef void (*HandoffCallback)(Handoff *handoff, char * data);
extern Handoff * handoff_new(void);
extern gboolean handoff_handoff(Handoff *handoff, const char *rendezvous, const char *data, gboolean display_relevant,
char *(*serialize) (Handoff *), void (*exit)(Handoff *));
DESCRIPTION
This manual page briefly describes the libhandoff0 API.
This manual page was written for the Debian distribution because the original program does not have a manual page.
libhandoff is used in the GPE Palmtop Environment to cause another program instance to come to the foreground. This is used when alarm
triggers (like atd) wake the device and then need to load another program to show the reason for the device waking up. When gpe-calendar
starts it looks at a well known location to find another instance of itself. If it does, it tells that instance to grab the focus.
This man page is for libhandoff0 version 0.1.
FUNCTIONS
The Handoff and HandoffClass structs are opaque. Use handoff_new to return a new Handoff * instance.
typedef void (*HandoffCallback)(Handoff *handoff, char * data);
The "handoff" signal is triggered when another instance successfully negotiates a handoff to this instance. DATA is the data sent by other
instance, normally a serialization of state this instance should use.
extern Handoff * handoff_new(void);
Create a new passive handoff. Before calling handoff_handoff, the caller should connect a handler to the "handoff" signal.
extern gboolean handoff_handoff(Handoff *handoff, const char *rendezvous, const char *data, gboolean display_relevant,
char *(*serialize) (Handoff *), void (*exit)(Handoff *));
Try to handoff this instance to an already running process.
rendezvous is the address which all instances of this program rendezvous with.
If another instance of the program is contacted then: if display_relevant is true, the value of the environment variable DISPLAY is sent;
and if data is non-NULL, its value is sent. If the handoff request (DISPLAY is either not sent or they are identical), this function
returns TRUE and this instance should proceed to exit. Otherwise, if the other instance punts, it sends a serialization of its state and
the "handoff" signal is fired and TRUE is returned.
If no running instance is found to be listening on rendezvous or the instance punts, this instance attempts to bind to rendezvous so that
subsequent instances can find this instance and FALSE is returned.
After connecting, this instance waits on rendezvous for other instances to connect. When an instance connects and hands off its state, the
"handoff" signal is fired. If this instance decides to yield (based on the above criteria), then serialize is called to serialize any
state. Once the handoff completes, exit is called and this instance should proceed to do any final clean up and exit.
AUTHOR
This manual page was written by Neil Williams <linux@codehelp.co.uk> for the Debian system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version
published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
libhandoff 3 Wed 25 Apr 2007 10:58:46 BST LIBHANDOFF0(3)