Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Get line numbers while searching the pattern in log Post 302657111 by SankalpS on Saturday 16th of June 2012 08:27:20 AM
Old 06-16-2012
Hi folks,
Please advise for the command.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Searching for data on a specific line numbers

Hi, I have a file on windows and have some unix utilitties available on windows. This file is very large and have over 5 million record. I am not able to open this file in Window Editor. I am trying to see bad data on a specific lines. I just have line numbers that has bad data. I need to see the... (8 Replies)
Discussion started by: rkumar28
8 Replies

2. Shell Programming and Scripting

Pattern searching pattern in c files

I have a problem in searching a specific pattern in c files. My requirement: I have to find all the division operator in all cfiles. The problem is, the multi line comments and single line comments will also have forward slash in it. Even after avoiding these comments also, if both... (6 Replies)
Discussion started by: murthybptl
6 Replies

3. Shell Programming and Scripting

searching for decimal numbers in a file

hi all, was wanting to know how to search for decimal numbers in a file ? am using solaris 8 and have tried a few options with "grep" but none of them seem to work. thanks in advance. (1 Reply)
Discussion started by: cesarNZ
1 Replies

4. Shell Programming and Scripting

Searching a pattern in file and deleting th ewhole line containing the pattern

Hi All, Please can someone assist in the script I have made that searches a pattern in a file and delete the whole line containing the pattern. #!bin/sh # The pattern that user want to add to the files echo "Enter the pattern of the redirect" read value # check if the user has... (1 Reply)
Discussion started by: Shazin
1 Replies

5. Shell Programming and Scripting

grep a pattern with line numbers.

I have a txt file with more than 10000 lines. There is a unique pattern which is scattered into the file. it starts with @9 and it has 15 characters. i need to grep them and display along with line numbers. Eg: File - Test1 test message.... .... .. .. @9qwerty89 ...test message... (8 Replies)
Discussion started by: abinash
8 Replies

6. Shell Programming and Scripting

Place digit in front of the line searching pattern using sed command

hi All, i want to add the single digit front of the line in the report file and string compare with pattern file. patter file: pattern1.txt pattern num like 4 love 3 john 2 report file: report.txt i like very much but john is good boy i will love u so after execute... (9 Replies)
Discussion started by: krbala1985
9 Replies

7. Shell Programming and Scripting

How to display the line number of file while searching for a pattern

awk 'BEGIN{IGNORECASE=1} /error|warning|exception/ { ++x } END { print x }' filename The above command returning the number of times the pattern present in the file. But I want the the line number as well. please help me out (6 Replies)
Discussion started by: arukuku
6 Replies

8. Shell Programming and Scripting

Grep the word from pattern line and update in subsequent lines till next pattern line reached

Hi, I have got the below requirement. please suggest. I have a file like, Processing Item is: /data/ing/cfg2/abc.txt /data/ing/cfg3/bgc.txt Processing Item is: /data/cmd/for2/ght.txt /data/kernal/config.klgt.txt I want to process the above file to get the output file like, ... (5 Replies)
Discussion started by: rbalaj16
5 Replies

9. Shell Programming and Scripting

Searching for a pattern and extracting records related to that pattern

Hi there, Looking forward to your advice for the below: I have a file which contains 2 paragraphs related to a particular pattern. I have to search for those paragraphs from a log file and then print a particular line from those paragraphs. Sample: I have one file with the fixed... (3 Replies)
Discussion started by: danish0909
3 Replies

10. Shell Programming and Scripting

sed pattern fails to delete line of numbers

We are using Red Hat Linux. I have a flat file with among other things, the following lines, which appear occasionally throughout the file: Using sed, I delete this line: L;L;L;L;R;R;R;L;R;L;R;R;R;L;L;L With: /^;;;;;*/d Works fine every time. However, I cannot delete... (6 Replies)
Discussion started by: bloomlock
6 Replies
QSignal(3qt)															      QSignal(3qt)

NAME
QSignal - Can be used to send signals for classes that don't inherit QObject SYNOPSIS
#include <qsignal.h> Inherits QObject. Public Members QSignal ( QObject * parent = 0, const char * name = 0 ) ~QSignal () bool connect ( const QObject * receiver, const char * member ) bool disconnect ( const QObject * receiver, const char * member = 0 ) void activate () bool isBlocked () const (obsolete) void block ( bool b ) (obsolete) void setParameter ( int value ) (obsolete) int parameter () const (obsolete) void setValue ( const QVariant & value ) QVariant value () const DESCRIPTION
The QSignal class can be used to send signals for classes that don't inherit QObject. If you want to send signals from a class that does not inherit QObject, you can create an internal QSignal object to emit the signal. You must also provide a function that connects the signal to an outside object slot. This is how we have implemented signals in the QMenuData class, which is not a QObject. In general, we recommend inheriting QObject instead. QObject provides much more functionality. You can set a single QVariant parameter for the signal with setValue(). Note that QObject is a private base class of QSignal, i.e. you cannot call any QObject member functions from a QSignal object. Example: #include <qsignal.h> class MyClass { public: MyClass(); ~MyClass(); void doSomething(); void connect( QObject *receiver, const char *member ); private: QSignal *sig; }; MyClass::MyClass() { sig = new QSignal; } MyClass::~MyClass() { delete sig; } void MyClass::doSomething() { // ... does something sig->activate(); // emits the signal } void MyClass::connect( QObject *receiver, const char *member ) { sig->connect( receiver, member ); } See also Input/Output and Networking and Miscellaneous Classes. MEMBER FUNCTION DOCUMENTATION
QSignal::QSignal ( QObject * parent = 0, const char * name = 0 ) Constructs a signal object called name, with the parent object parent. These arguments are passed directly to QObject. QSignal::~QSignal () Destroys the signal. All connections are removed, as is the case with all QObjects. void QSignal::activate () Emits the signal. If the platform supports QVariant and a parameter has been set with setValue(), this value is passed in the signal. void QSignal::block ( bool b ) This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. Blocks the signal if b is TRUE, or unblocks the signal if b is FALSE. An activated signal disappears into hyperspace if it is blocked. See also isBlocked(), activate(), and QObject::blockSignals(). bool QSignal::connect ( const QObject * receiver, const char * member ) Connects the signal to member in object receiver. See also disconnect() and QObject::connect(). bool QSignal::disconnect ( const QObject * receiver, const char * member = 0 ) Disonnects the signal from member in object receiver. See also connect() and QObject::disconnect(). bool QSignal::isBlocked () const This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. Returns TRUE if the signal is blocked, or FALSE if it is not blocked. The signal is not blocked by default. See also block() and QObject::signalsBlocked(). int QSignal::parameter () const This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. void QSignal::setParameter ( int value ) This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. void QSignal::setValue ( const QVariant & value ) Sets the signal's parameter to value QVariant QSignal::value () const Returns the signal's parameter SEE ALSO
http://doc.trolltech.com/qsignal.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qsignal.3qt) and the Qt version (3.3.8). Trolltech AS 2 February 2007 QSignal(3qt)
All times are GMT -4. The time now is 12:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy