Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Awk print all lines on match? Post 302511990 by Franklin52 on Friday 8th of April 2011 05:18:58 AM
Old 04-08-2011
Post some lines of the output with the OK and Error lines and the desired output.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk to print lines based on string match on another line and condition

Hi folks, I have a text file that I need to parse, and I cant figure it out. The source is a report breaking down softwares from various companies with some basic info about them (see source snippet below). Ultimately what I want is an excel sheet with only Adobe and Microsoft software name and... (5 Replies)
Discussion started by: rowie718
5 Replies

2. Shell Programming and Scripting

how to print all lines from a second match

I am trying to parse iostat output for io issues.. I want to print all lines including second occurance of 'extended' till EOF(end of file). Can we do that using awk or sed one liners or do we need a script for it? (1 Reply)
Discussion started by: kchinnam
1 Replies

3. Shell Programming and Scripting

Print lines before and after pattern match

I am using Solaris, I want to print 3 lines before pattern match pattern 5 lines after pattern match Pattern is abcd to be searched in a.txt. Looking for the solution in sed/awk/perl. Thanks .. Input File a.txt: ================= 1 2 3 abcd 4 5 6 7 8 (7 Replies)
Discussion started by: manuswami
7 Replies

4. UNIX for Dummies Questions & Answers

awk display the match and 2 lines after the match is found.

Hello, can someone help me how to find a word and 2 lines after it and then send the output to another file. For example, here is myfile1.txt. I want to search for "Error" and 2 lines below it and send it to myfile2.txt I tried with grep -A but it's not supported on my system. I tried with awk,... (4 Replies)
Discussion started by: eurouno
4 Replies

5. Shell Programming and Scripting

Print all lines before first match

Hi, I have this file. close block3c block3b block3a open close block2b block2a open close block1a open and I need : open block3a block3b block3c close (1 Reply)
Discussion started by: lasserfox
1 Replies

6. Shell Programming and Scripting

awk print pattern match line and following lines

Data: Pattern Data Data Data Data Data Data Data Data Data ... With awk, how do I print the pattern matching line, then the subsequent lines following the pattern matching line. Varying number of lines following the pattern matching line. (9 Replies)
Discussion started by: dmesserly
9 Replies

7. Shell Programming and Scripting

awk Print New Column For Every Two Lines and Match On Multiple Column Values to print another column

Hi, My input files is like this axis1 0 1 10 axis2 0 1 5 axis1 1 2 -4 axis2 2 3 -3 axis1 3 4 5 axis2 3 4 -1 axis1 4 5 -6 axis2 4 5 1 Now, these are my following tasks 1. Print a first column for every two rows that has the same value followed by a string. 2. Match on the... (3 Replies)
Discussion started by: jacobs.smith
3 Replies

8. UNIX for Dummies Questions & Answers

awk - (URGENT!) Print lines sort and move lines if match found

URGENT HELP IS NEEDED!! I am looking to move matching lines (01 - 07) from File1 and 77 tab the matching string from File2, to File3.txt. I am almost done but - Currently, script is not printing lines to File3.txt in order. - Also the matching lines are not moving out of File1.txt ... (1 Reply)
Discussion started by: High-T
1 Replies

9. Shell Programming and Scripting

Match the value & print lines from the match

Hello, I have a file contains two columns. I need to print the lines after “xxx” so i'm trying to match "xxx" & cut the lines after that. I'm trying with the grep & cut command, if there any simple way to extract this please help me. Sample file : name id AAA 123 AAB 124 AAC 125... (4 Replies)
Discussion started by: Shenbaga.d
4 Replies

10. Shell Programming and Scripting

awk to print match or non-match and select fields/patterns for non-matches

In the awk below I am trying to output those lines that Match between file1 and file2, those Missing in file1, and those missing in file2. Using each $1,$2,$4,$5 value as a key to match on, that is if those 4 fields are found in both files the match, but if those 4 fields are not found then missing... (0 Replies)
Discussion started by: cmccabe
0 Replies
dhb(4)							     Kernel Interfaces Manual							    dhb(4)

Name
       dhb - DHB32 communications multiplexer

Syntax
       device dmb0 at vaxbi? node? flags 0x????
	    vector dmbsint dmbaint dmblint

Description
       A  DHB32  device  provides  16  asynchronous  communication lines with full modem control.  The DHB32 and the DMB32 share a common software
       device driver.  For this reason, the configuration line is the same for both the DHB32 and DMB32.

       Each line attached to a DHB32 serial line port behaves as described in Input and output for each line can independently be set  to  run	at
       any of 16 speeds.  See for the encoding.

       Bit i of flags may be specified for a to say that a line should be treated as a hardwired connection with carrier always present.  If bit i
       of flags is not set, the line will operate under full modem control.  Modem lines will operate in accordance to the  CD	(carrier  detect),
       DSR  (data  set	ready) and CTS (clear to send) leads.  Thus, specifying ``flags 0x0004'' in the specification of would cause line 2 on the
       DHB32 to be treated as hardwired with carrier always present.  In this example, the remainder of the lines will be modem control lines.

Diagnostics
       dmbinit: async lines unavailable
       This message is produced at system boot time if the DHB32 fails its internal self test indicating that the asynchronous lines  have  failed
       to configure.

       dmb%d: fifo overflow
       The character input fifo overflowed before it could be serviced.  This can happen if the CPU is running with elevated priority for too long
       a period of time.  Overflow errors may indicate that configuration constraints have been reached.

       dmb%d: DMA Error. tbuf = 0x%x
       A DMA output transfer failed.  This problem can result from a memory error or an invalid pte (page table entry).  For a description of  the
       error code in the ``tbuf'' register. See the DHB32 documentation.

       dmb%d: DMB Hardware Error. TX.DMA.START failed
       The failed to clear the start bit.  Normally, this is cleared to signal that a DMA transfer has completed.

       dmb%d: Modem Error. tbuf = 0x%x
       Indicates a problem with a modem or its cable.  For a description of the error code in the ``tbuf'' register. See the DHB32 documentation.

       dmb%d: Internal Error. tbuf = 0x%x
       Indicates  that	the  DHB32  detected  an internal error.  For a description of the error code in the ``tbuf'' register. See the DHB32 User
       Guide.

Files
       (modem lines only)

See Also
       tty(4), MAKEDEV(8), dmbsp(4)

																	    dhb(4)
All times are GMT -4. The time now is 04:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy