Sponsored Content
Top Forums Shell Programming and Scripting Outputting formatted Result log file from old 30000 lines result log<help required> Post 302148042 by vikas.iet on Thursday 29th of November 2007 02:20:26 PM
Old 11-29-2007
Hey guys.. Please show me some pointers.. Its kinda very urgent.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help in outputting the result in log files

This is the file am having: "40","1G1AL55 ",30482,9000 "40","1G1ZT58 ",29098,10600 "40","1G1AL15 ",29222,9400 "46","1G6KD57 ",3083,28400 "46","1G6KD57 ",27909,25200 "49","1G1ZU57 ",16391,13900 "49","1G2ZG58 ",28856,12400 I want to display the output in three files... (23 Replies)
Discussion started by: dave_nithis
23 Replies

2. UNIX for Dummies Questions & Answers

display the result of wc -l with words before and after the result

hello showrev -p | wc -l returns: 381 What to do in case I want to have this output: number of lines returned by showrev -p is: 381 thx (3 Replies)
Discussion started by: melanie_pfefer
3 Replies

3. Shell Programming and Scripting

extract x lines after a pattern - place each result in separate file

Hi all, I have many files that have 1 or more occurrences of the information I want. There are two distinct sets of information. I want get this info and place each occurrence in its own file. The 3 lines before one set are this grid 00 01 02 16 17 18 **40 lines of code I want to... (5 Replies)
Discussion started by: gobi
5 Replies

4. Shell Programming and Scripting

What syntax is required so that result will start from a new line..

What syntax is required to start the result in a new line (7 Replies)
Discussion started by: sapan123
7 Replies

5. Shell Programming and Scripting

Read multiple log files and create output file and put the result

OS : Linux 2.6.9-67 - Red Hat Enterprise Linux ES release 4 Looking for a script that reads the following log files that gets generated everynight between 2 - 5am Master_App_20090717.log Master_App1_20090717.log Master_App2_20090717.log Master_App3_20090717.log... (2 Replies)
Discussion started by: aavam
2 Replies

6. Shell Programming and Scripting

awk, sed, perl assistance in outputting formatted file

Hello, Please advise. Scoured this site, as well as google for answers. However if you do not know what to search for, it's a bit hard to find answers. INPUT: ACTASS= 802 BASECOS= 279 COSNCHG= 3 CUSCOS= 52 UPLDCOS= 2 DESIRED OUTPUT: ACTASS=802 BASECOS=279 (13 Replies)
Discussion started by: abacus
13 Replies

7. Shell Programming and Scripting

How can I get the required result?

Hi, guys. I have a question. Please help me~ I got an text, recording the weather reports. It is the Attachment "Weather Forcast_original.txt" I want to get the required result like the attachment "Weather Forcast_formatted.txt" I thought about the loop, the conditions, but I'm surely... (3 Replies)
Discussion started by: franksunnn
3 Replies

8. Shell Programming and Scripting

Output block of lines in a file based on grep result

Hi I would appreciate your help with this. I have a output file from a command. It is broken based on initial of the users. Exmaple of iitials MN & SS. Under each section there is information pertaining to the user however each section can have different number of lines. MY challenge is to ... (5 Replies)
Discussion started by: mnassiri
5 Replies

9. Shell Programming and Scripting

How to compare the current result with previous line result.?

Hi Gurus, I have requirement to compare current result with previous reuslt. The sample case is below. 1 job1 1 1 job2 2 1 job3 3 2 job_a1 1 2 job_a2 2 2 job_a3 3 3 job_b1 1 3 job_b2 2 for above sample file, GID is group ID, for input line, the job run... (1 Reply)
Discussion started by: ken6503
1 Replies

10. Shell Programming and Scripting

How to compare 2 files and create a result file with unmatched lines from first file.?

HI, I have 2 text files. file1 and file2. file1.txt (There are no duplicates in this file) 1234 3232 4343 3435 6564 6767 1213 file2.txt 1234,wq,wewe,qwqw 1234,as,dfdf,dfdf 4343,asas,sdds,dsds 6767,asas,fdfd,fdffd I need to search each number in file1.txt in file2.txt's 1st... (6 Replies)
Discussion started by: Little
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 10:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy