Sponsored Content
Top Forums Shell Programming and Scripting How to use command tail -f & show line number. Post 302575031 by ooilinlove on Sunday 20th of November 2011 12:37:22 AM
Old 11-20-2011
Quote:
Originally Posted by @bhi
Hi,
Try as below
tail -f filename |grep -n "Key word"
Thank. But it's work.
this is output from command :
Code:
2    19-11-2011 21:09:15,234 [49087][22830@YU:140649:null] - INFO Numbement - error number:result = :11
3    19-11-2011 21:09:15,286 [56166][22830@YU:53840:null] - INFO Numbement - error number:result = :11
5    19-11-2011 21:09:15,523 [146574][22830@YU:237562:null] - INFO Numbement - error number:result = :11
11    19-11-2011 21:09:16,022 [56166][22830@YU:237562:null] - INFO Numbement - error number:result = :11
12    19-11-2011 21:09:16,147 [56166][22830@YU:589:null] - INFO Numbement - error number:result = :11
20    19-11-2011 21:09:16,813 [56166][20030@ananke3:226720:null] - INFO Numbement - error number:result = :11
25    19-11-2011 21:09:17,823 [44002][20030@ananke3:53821:null] - INFO Numbement - error number:result = :11
33    19-11-2011 21:09:19,409 [49087][22830@YU:237562:null] - INFO Numbement - error number:result = :11
40    19-11-2011 21:09:22,367 [44002][20030@ananke3:53821:null] - INFO Numbement - error number:result = :11

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

tail command in SUN & HP_unix

Hi any SUN expert, All the while I using HP-Unix. Now when i turned into SUN environment, I not sure how the command should look like in SUN sys. HP: tail -n3 file.log (this is the command i normally use) SUN: tail (this 1 not work, donno where went wrong) Please help, thanks! (3 Replies)
Discussion started by: clemeot
3 Replies

2. UNIX for Dummies Questions & Answers

Making Emacs to show line number

Hi all How can I make Emacs to show the line numbers at the left or right as a default. This might help me to quickly jump to a given line. Thanks SS (9 Replies)
Discussion started by: saurya_s
9 Replies

3. UNIX for Dummies Questions & Answers

identifying duplicates line & reporting their line number

I need to find to find duplicate lines in a document and then print the line numbers of the duplicates The files contain multiple lines with about 100 numbers on each line I need something that will output the line numbers where duplicates were found ie 1=5=7, 2=34=76 Any suggestions would be... (5 Replies)
Discussion started by: stresslog
5 Replies

4. UNIX for Dummies Questions & Answers

how to display line number for tail -f

Hi, Just wonder if there is any quick way to display line number when monitoring a log file with tail -f? (4 Replies)
Discussion started by: iengca
4 Replies

5. Solaris

Tail command in one line

HI i have to copy the last 5000 lines form a log file and copy the same in the same file .overwriting the same log file. ex: tail -5000 testfile1 > testfile2 cat testfile2 mv tesftfile2 testfile1 will produce the correct result.but i want to have this done in one line???? (4 Replies)
Discussion started by: saurabh84g
4 Replies

6. Shell Programming and Scripting

tail command not show on screen

Hi, I'm moniroting duplicate text with unix command (tail -f trace75747 | grep 'duplicate'), but it showed many lines then it stop show trace information although trace information in this file trace75747 always got. What should I do? I look forward to hearing from you. THANKS! (10 Replies)
Discussion started by: seyha_moth
10 Replies

7. Shell Programming and Scripting

Show date/time with tail|grep command

Hi, I have a log file without date/time, and I want that everytime tail|grep find something it displays the date/time and the line. I have tried something like this command but without any luck to display the date/time: tail -F catalina.out | sed "s/^/`date `/" | egrep ... (6 Replies)
Discussion started by: julugu
6 Replies

8. Shell Programming and Scripting

Display Specific line number using tail command

Hi , 1)i want to display specific line number using tail command. e.g. display 10 line from end. Please help... 2)Want to display line 10 to 15 (from end)using tail command) (2 Replies)
Discussion started by: vivek1489
2 Replies

9. Homework & Coursework Questions

How to display certain line of file only using head or tail in 1 command?

First month learning about the Linux terminal and it has been a challenge yet fun so far. We're learning by using a gameshell. I'm trying to display a certain line ( only allowed 1 command ) from a file only using the head or tail. I'm pretty about this answer: head -23 history.txt | tail -1... (1 Reply)
Discussion started by: forzatekk
1 Replies

10. UNIX for Beginners Questions & Answers

Grep command to show the number of results

Hi I wanted to know if there is an option in grep command to show the number of results (not the number of lines of findings). Thanks (14 Replies)
Discussion started by: abdossamad2003
14 Replies
sgeequ.f(3)							      LAPACK							       sgeequ.f(3)

NAME
sgeequ.f - SYNOPSIS
Functions/Subroutines subroutine sgeequ (M, N, A, LDA, R, C, ROWCND, COLCND, AMAX, INFO) SGEEQU Function/Subroutine Documentation subroutine sgeequ (integerM, integerN, real, dimension( lda, * )A, integerLDA, real, dimension( * )R, real, dimension( * )C, realROWCND, realCOLCND, realAMAX, integerINFO) SGEEQU Purpose: SGEEQU computes row and column scalings intended to equilibrate an M-by-N matrix A and reduce its condition number. R returns the row scale factors and C the column scale factors, chosen to try to make the largest element in each row and column of the matrix B with elements B(i,j)=R(i)*A(i,j)*C(j) have absolute value 1. R(i) and C(j) are restricted to be between SMLNUM = smallest safe number and BIGNUM = largest safe number. Use of these scaling factors is not guaranteed to reduce the condition number of A but works well in practice. Parameters: M M is INTEGER The number of rows of the matrix A. M >= 0. N N is INTEGER The number of columns of the matrix A. N >= 0. A A is REAL array, dimension (LDA,N) The M-by-N matrix whose equilibration factors are to be computed. LDA LDA is INTEGER The leading dimension of the array A. LDA >= max(1,M). R R is REAL array, dimension (M) If INFO = 0 or INFO > M, R contains the row scale factors for A. C C is REAL array, dimension (N) If INFO = 0, C contains the column scale factors for A. ROWCND ROWCND is REAL If INFO = 0 or INFO > M, ROWCND contains the ratio of the smallest R(i) to the largest R(i). If ROWCND >= 0.1 and AMAX is neither too large nor too small, it is not worth scaling by R. COLCND COLCND is REAL If INFO = 0, COLCND contains the ratio of the smallest C(i) to the largest C(i). If COLCND >= 0.1, it is not worth scaling by C. AMAX AMAX is REAL Absolute value of largest matrix element. If AMAX is very close to overflow or very close to underflow, the matrix should be scaled. INFO INFO is INTEGER = 0: successful exit < 0: if INFO = -i, the i-th argument had an illegal value > 0: if INFO = i, and i is <= M: the i-th row of A is exactly zero > M: the (i-M)-th column of A is exactly zero Author: Univ. of Tennessee Univ. of California Berkeley Univ. of Colorado Denver NAG Ltd. Date: November 2011 Definition at line 139 of file sgeequ.f. Author Generated automatically by Doxygen for LAPACK from the source code. Version 3.4.2 Tue Sep 25 2012 sgeequ.f(3)
All times are GMT -4. The time now is 02:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy