08-04-2019
Not clear. Do you want to print the entire paragraph from Recieve Data From Amazon down to [INFO][SendSMSServlet]Process time IF that specific msn number is within? How do you supply the msn number, in a variable?
Not the slightest attempts / ideas / thoughts from your side?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear All,
I have a file containing info like
TID:0903 asdfasldjflsdjf
TID:0945 hjhjhkhkhkh
TID:2045 hjhjhkhkhkh
TID:1945 hjhjhkhkhkh
TID:2045 hjhjhkhkhkh
I need to show only lines containing
TID:0903 asdfasldjflsdjf
TID:0945 hjhjhkhkhkh
TID:2045 hjhjhkhkhkh
TID:2045 hjhjhkhkhkh
... (11 Replies)
Discussion started by: saifurshaon
11 Replies
2. Shell Programming and Scripting
How to grep multi line.
My LOg.
.
.
.
.
2010-04-23 02:17:02,419 INFO - -MsgCode = 00903
2010-04-23 02:17:02,420 INFO - - end processABCD126
2010-04-23 02:17:02,420 DEBUG - try to get message=ERROR_NOT_AUTHORIZED_TO_USE_SERVICE
2010-04-23 02:17:02,420 DEBUG - got message=Test... (4 Replies)
Discussion started by: ooilinlove
4 Replies
3. Shell Programming and Scripting
Hello Everyone,
i need to read specific number of lines ( always serialized ; i.e from 10 to 20 or from 34 to 44 ) in a file , where the first line is found by grep 'ing a keyword.
example
file.txt
------------------------------------------------------------------
--header
this is the... (7 Replies)
Discussion started by: alain.kazan
7 Replies
4. Shell Programming and Scripting
Hi, I have a very large file I want to extract lines from. I'm hoping Grep can do the job, but I'm running into problems.
I want to return all lines that match a pattern. However, if the following line of a matched line contains the word "Raw" I want to return that line as well.
Is this... (3 Replies)
Discussion started by: redbluefish
3 Replies
5. Shell Programming and Scripting
If a file consists of a thousands of line. There is a error line in the file which exists just before the line with word "Manish".
How could I write a script to grep the line with error.
Ex:-
If I have a UNIX file which contains the following:
bash-3.2$ cat unix.txt
Unix (officially... (4 Replies)
Discussion started by: manishdivs
4 Replies
6. UNIX for Dummies Questions & Answers
How can I recursively find all files in a directory and print out the file and first line number of any text blocks that match the below cases?
This would seem to involve find, xargs, *grep, regex, etc.
In summary, I want to find so-called empty "try-catch blocks" that do not contain code... (0 Replies)
Discussion started by: lifechamp
0 Replies
7. Shell Programming and Scripting
I have a file with data records separated by multiple equals signs, as below.
==========
RECORD 1
==========
RECORD 2
DATA LINE
==========
RECORD 3
==========
RECORD 4
DATA LINE
==========
RECORD 5
DATA LINE
==========
I need to filter out all data from this file where the... (2 Replies)
Discussion started by: Finja
2 Replies
8. Shell Programming and Scripting
Hi All.
how to grep with same keyword.
23-07-2012 15:15:30,117 ::: Recieve Message From Commadu :::
..
...
....
23-07-2012 16:15:28,481 ::: Recieve Message From Commadu :::
23-07-2012 16:15:28,481 IP : 127.0.0.1 | msg =... (1 Reply)
Discussion started by: ooilinlove
1 Replies
9. Shell Programming and Scripting
Hi
I want to implement something like this:
if( keyword1 exists)
then
check if(keyword2 exists in the same line)
then replace keyword 2 with New_Keyword
else
Add New_Keyword at the end of line
end if
eg:
Check for Keyword JUNGLE and add/replace... (7 Replies)
Discussion started by: dashing201
7 Replies
10. Shell Programming and Scripting
Input File:
>Seq1
ASDADAFASFASFADGSDGFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSD
>Seq2
SDASDAQEQWEQeqAdfaasd
>Seq3
ASDSALGHIUDFJANCAGPATHLACJHPAUTYNJKG
......
Desired Output File
>Seq1
ASDADAFASF
ASFADGSDGF
SDFSDFSDFS
DFSDFSDFSD
FSDFSDFSDF
SD
>Seq2 (4 Replies)
Discussion started by: patrick87
4 Replies
PTX(1) General Commands Manual PTX(1)
NAME
ptx - permuted index
SYNOPSIS
ptx [ option ] ... [ input [ output ] ]
DESCRIPTION
Ptx generates a permuted index to file input on file output (standard input and output default). It has three phases: the first does the
permutation, generating one line for each keyword in an input line. The keyword is rotated to the front. The permuted file is then
sorted. Finally, the sorted lines are rotated so the keyword comes at the middle of the page. Ptx produces output in the form:
.xx "tail" "before keyword" "keyword and after" "head"
where .xx may be an nroff or troff(1) macro for user-defined formatting. The before keyword and keyword and after fields incorporate as
much of the line as will fit around the keyword when it is printed at the middle of the page. Tail and head, at least one of which is an
empty string "", are wrapped-around pieces small enough to fit in the unused space at the opposite end of the line. When original text
must be discarded, `/' marks the spot.
The following options can be applied:
-f Fold upper and lower case letters for sorting.
-t Prepare the output for the phototypesetter; the default line length is 100 characters.
-w n Use the next argument, n, as the width of the output line. The default line length is 72 characters.
-g n Use the next argument, n, as the number of characters to allow for each gap among the four parts of the line as finally printed.
The default gap is 3 characters.
-o only
Use as keywords only the words given in the only file.
-i ignore
Do not use as keywords any words given in the ignore file. If the -i and -o options are missing, use /usr/share/misc/eign as the
ignore file.
-b break
Use the characters in the break file to separate words. In any case, tab, newline, and space characters are always used as break
characters.
-r Take any leading nonblank characters of each input line to be a reference identifier (as to a page or chapter) separate from the
text of the line. Attach that identifier as a 5th field on each output line.
The index for this manual was generated using ptx.
FILES
/usr/bin/sort
/usr/share/misc/eign
BUGS
Line length counts do not account for overstriking or proportional spacing.
7th Edition October 22, 1996 PTX(1)