Sponsored Content
Top Forums Shell Programming and Scripting Extracting data from multiple lines Post 302948873 by RudiC on Friday 3rd of July 2015 08:48:30 AM
Old 07-03-2015
Please use code tags as required by forum rules! And, aside, the word "urgent" (even though you misspelled it) is not too well received in these fora.

Any idea/attempt from your side? Did you consider using awk (which should be easy)?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

BASH: extracting values from multiple lines after a match

Hi there, I have the following output, # raidctl -l RAID Volume RAID RAID Disk Volume Type Status Disk Status ------------------------------------------------------ c0t1d0 IM OK c0t1d0 OK ... (4 Replies)
Discussion started by: rethink
4 Replies

2. Shell Programming and Scripting

Extracting high frequency data-lines

Hi, I have a very large log file in the following format: 198.28.0.0 - - 200 348 244.48.0.0 - - 200 211 198.28.0.0 - - 200 191 4.48.0.0 - - 200 1131 244.48.0.0 - - 200 1131 244.48.0.0 - - 200 1131 4.48.0.0 - - 200 1131 244.48.0.0 - - 200 211 4.48.0.0 - - 200 1131 ... (2 Replies)
Discussion started by: sajal.bhatia
2 Replies

3. UNIX for Dummies Questions & Answers

Finding and Extracting uniq data in multiple files

Hi, I have several files that look like this: File1.txt Data1 Data2 Data20 File2.txt Data1 Data5 Data10 File3.txt Data1 Data2 Data17 File4.txt (6 Replies)
Discussion started by: Fahmida
6 Replies

4. Shell Programming and Scripting

Extracting specific lines of data from a file and related lines of data based on a grep value range?

Hi, I have one file, say file 1, that has data like below where 19900107 is the date, 19900107 12 144 129 0.7380047 19900108 12 168 129 0.3149017 19900109 12 192 129 3.2766666E-02 ... (3 Replies)
Discussion started by: Wynner
3 Replies

5. Shell Programming and Scripting

Extracting Multiple Lines from a Text File

Hello. I am sorry if this is a common question but through all my searching, I haven't found an answer which matches what I want to do. I am looking for a sed command that will parse through a large text file and extract lines that start with specific words (which are repeated throughout the... (4 Replies)
Discussion started by: MrDumbQuestion
4 Replies

6. Shell Programming and Scripting

Extracting lines based on identifiers into multiple files respectively

consider the following is the contents of the file cat 11.sql drop procedure if exists hoop1 ; Delimiter $$ CREATE PROCEDURE hoop1(id int) BEGIN END $$ Delimiter ; . . . . drop procedure if exists hoop2; Delimiter $$ CREATE PROCEDURE hoop2(id int) BEGIN END $$ (8 Replies)
Discussion started by: vivek d r
8 Replies

7. UNIX for Dummies Questions & Answers

Filtering data -extracting specific lines

I have a table to data which one of the columns include string of text from within that, I am searching to include few lines but not others for example I want to to include some combination of word address such as (address.| address? |the address | your address) but not (ip address | email... (17 Replies)
Discussion started by: A-V
17 Replies

8. UNIX for Advanced & Expert Users

Extracting specific lines from data file

Hello, Is there a quick awk one-liner for this extraction?: file1 49389 text55 52211 text66 file2 59302 text1 49389 text2 85939 text3 52211 text4 13948 text5 Desired output 49389 text2 52211 text4 Thanks!! (5 Replies)
Discussion started by: palex
5 Replies

9. UNIX for Dummies Questions & Answers

Extracting data between specific lines, multiple times

I need help extracting specific lines in a text file. The file looks like this: POSITION TOTAL-FORCE (eV/Angst) ----------------------------------------------------------------------------------- 1.86126 1.86973 1.86972 ... (14 Replies)
Discussion started by: captainalright
14 Replies

10. Shell Programming and Scripting

Extracting data from specific rows and columns from multiple csv files

I have a series of csv files in the following format eg file1 Experiment Name,XYZ_07/28/15, Specimen Name,Specimen_001, Tube Name, Control, Record Date,7/28/2015 14:50, $OP,XYZYZ, GUID,abc, Population,#Events,%Parent All Events,10500, P1,10071,95.9 Early Apoptosis,1113,11.1 Late... (6 Replies)
Discussion started by: pawannoel
6 Replies
t_rcv(3)						     Library Functions Manual							  t_rcv(3)

NAME
t_rcv() - receive data or expedited data sent over a connection SYNOPSIS
DESCRIPTION
The function receives either normal or expedited data. fd identifies the local transport endpoint through which data will arrive. buf points to a receive buffer where user data will be placed. nbytes specifies the size of the receive buffer. flags may be set on return from and specifies optional flags as described below. By default, operates in synchronous mode and will wait for data to arrive if none is currently available. However, if is set (via or will execute in asynchronous mode and will fail if no data is available. (See [TNODATA] below.) On return from the call, if is set in flags, this indicates that there is more data. Thus, the current transport service data unit (TSDU) or expedited transport service data unit (ETSDU) must be received in multiple calls. In the asynchronous mode, the flag may be set on return from the call even when the number of bytes received is less than the size of the receive buffer specified. Each with the flag set indicates that another must follow immediately to get more data for the current TSDU. The end of the TSDU is identified by the return of a call with the flag not set. If the transport provider does not support the concept of a TSDU as indicated in the info argument on return from or the flag is not meaningful and should be ignored. If nbytes is greater than zero on the call to will return 0 only if the end of a TSDU is being returned to the user. On return, the data returned is expedited data if is set in flags. If the number of bytes of expedited data exceeds nbytes, will set and on return from the initial call. Subsequent calls to retrieve the remaining ETSDU will have set on return. The end of the ETSDU is iden- tified by the return of a call with the flag not set. If expedited data arrives after part of a TSDU has been retrieved, receipt of the remainder of the TSDU will be suspended until the ETSDU has been processed. Only after the full ETSDU has been retrieved not set) will the remainder of the TSDU be available to the user. In synchronous mode, the only way for the user to be notified of the arrival of normal or expedited data is to issue this function or check for the or events using the function. XTI Internet Protocol-specific Information The flag should be ignored if normal data is delivered. If a byte in the data stream is pointed to by the TCP urgent pointer, as many bytes as possible preceding this marked byte and the marked byte itself are denoted as urgent data and are received with the flag set. If the buffer supplied by the user is too small to hold all urgent data, the flag will be set, indicating that urgent data still remains to be read. Note that the number of bytes received with the flag set is not necessarily equal to the number of bytes sent by the peer user with flag set. Fork Safety is not fork-safe. RETURN VALUE
Upon successful completion, returns the number of bytes received. Otherwise, it return -1 and is set to indicate the error. ERRORS
On failure, is set to one of the following: The specified identifier does not refer to a transport endpoint. was set, but no data is currently available from the transport provider. An asynchronous event has occurred on this transport endpoint and requires immediate attention. This function is not supported by the underlying transport provider. (XTI only) The function was issued in the wrong sequence on the endpoint referenced by fd. A system error has occurred during execution of this function. (XTI only) This error indicates that a communication problem has been detected between XTI and the transport provider for which there is no other suitable XTI ( SEE ALSO
fcntl(2), t_getinfo(3), t_look(3), t_open(3), t_snd(3), thread_safety(5). STANDARDS CONFORMANCE
t_rcv(3)
All times are GMT -4. The time now is 11:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy