Sponsored Content
Full Discussion: Texts between 2 strings
Top Forums UNIX for Dummies Questions & Answers Texts between 2 strings Post 302829511 by giri_luck on Friday 5th of July 2013 05:38:10 AM
Old 07-05-2013
Texts between 2 strings

Hi,

I have a file with texts shown below,
Code:
<2013 abc
<2013 start
request pdu
     dot1q
end pdu
response pdu
     dot1q
end pdu

am searching for the text "dot1q" , when it matches in the file , i need the contents between "<2013 start" and "end pdu". Can some one help on this ?

So after the search string is been found [ here it is "dot1q" ] i need the texts between "<2013 start" and the second occurance of "end pdu"

Last edited by giri_luck; 07-05-2013 at 06:46 AM..
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Separate sentences from two texts, combine them

I havet two books, one in Swedish, the other in English. Two text files. I want to combine them into one, with each sentence having it's translation next to it. ------------ Text file one. Example sentence in English. Example 2 sentence 2 in English 2. -------------- Text file two. ... (2 Replies)
Discussion started by: LaraMej
2 Replies

2. Shell Programming and Scripting

copy and merge texts between two pattern

I need 1. to find all the files from a Folder "folder_name" and from its 4 or 5 sub folders which contain a certain pattern "pattern1". 2. from these files copy and merge all the text between "pattern1" and another different pattern "pattern2" to "mergefile". 3. Get rid of every html tag. 4.... (3 Replies)
Discussion started by: mjomba
3 Replies

3. Shell Programming and Scripting

extract texts using awk

Hello, I have two files: File1: a b c d File2: b c e I need 'e' as output.... Thanks.. ---------- Post updated at 12:16 PM ---------- Previous update was at 12:15 PM ---------- (1 Reply)
Discussion started by: shekhar2010us
1 Replies

4. Shell Programming and Scripting

How to concatenate texts in perl only?

Hi, I want to concatenate the texts in the file but there are different scenario's. Ist Scenario. The contents of file has id`language,sequence number,text,language Here id`language is a key pair to identify the correct language. Sequnce number is the order the text being inserted. Text... (3 Replies)
Discussion started by: vanitham
3 Replies

5. Programming

How to test many texts generated by many commands ?

Hello, I have hundreds of text files to be tested.They are generated by many commands. I should check whether a word in specific position is right, or whether a word in file A is equal to a word in file B. All the file are not the same. I decide to use shell to test every files, so I had to write... (7 Replies)
Discussion started by: 915086731
7 Replies

6. UNIX for Dummies Questions & Answers

Searching for Multiple texts in a file

Hello guys, I hope anyone can help me with this ... I have a file in which i have around 6000 lines of same format text like 1234567 2345678 3456789 .................... Now what I have to do is that there I have to search these numbers in another file which contains hundreds of... (1 Reply)
Discussion started by: m_usmanayub
1 Replies

7. Post Here to Contact Site Administrators and Moderators

Can there be alt-texts to icons?

Can you add hover texts (alt-texts) to icons? It is not always obvious what each of them mean just by looking at them. Sometimes it is clear from the url it points to, but for accessibility reasons alone it would be good to have alt-texts as a standard. (1 Reply)
Discussion started by: figaro
1 Replies

8. Shell Programming and Scripting

Aligning Texts

is there any way to align my text so every column begins on the same line as the previous line? here's my command: printf "THEN ( ${SEARCHPATTB} = Hour = ${CALTOTB} ) %8s => %8s NOW ( ${SEARCHPATT} = Hour = ${CALTOT} ) %7s => %7s Reduced By: %7s -${RESULT}"\\n output i'm currently getting... (2 Replies)
Discussion started by: SkySmart
2 Replies
KLAVARO(1)							 Klavaro - Manual							KLAVARO(1)

NAME
Klavaro - Flexible touch typing tutor using GTK+2 SYNOPSIS
klavaro DESCRIPTION
Klavaro is a program that teachs you to touch type and/or helps you to improve your skills with the keyboard. There is some more information at: http://klavaro.sourceforge.net OPTIONS
Besides the version option, only those related to GTK are available. -h, --help: see some help at command line. -v, --version: see the program version. COLORS
Some colors may be configured through the file "preferences.ini" There you should create a session named [colors] and set some colors with the internet/html syntax (#RRGGBB). For example: [colors] key_fg=#332200 key_1=#112233 key_9=#213243 text_intro_fg=#222222 char_untouched_bg=#fffaf8 char_wrong_fg=#880000 char_correct_fg=#009900 char_retouched_fg=#bbbbaa cursor_blink_bg=#ff88ff Here follows the complete list of keywords to set colors. Background and foreground for the tutor introductory texts: text_intro_bg text_intro_fg Background and foreground for the tutor texts before they be typed out: char_untouched_bg char_untouched_fg The same for the tutor texts after they be correcty typed out: char_correct_bg char_correct_fg Same for tutor texts after they be wrongly typed: char_wrong_bg char_wrong_fg Same for tutor texts after they be correcty retyped, correcting errors (only in fluidity module): char_retouched_bg char_retouched_fg Blinking color of the block cursor in the tutor tests: cursor_blink_bg cursor_blink_fg Foreground of keys in the virtual keyboard: key_fg Background of keys, according to the finger responsible for it, from left to right (key_5 is valid for both thumbs, it is the space key): key_1 key_2 key_3 key_4 key_5 key_6 key_7 key_8 key_9 AUTHOR
Klavaro was written by Felipe E. F. de Castro. e-mail: <fefcas@gmail.com> GNU
2012-01-14 KLAVARO(1)
All times are GMT -4. The time now is 04:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy