Sponsored Content
Top Forums Shell Programming and Scripting merging multiple lines into single line Post 302625553 by bala123 on Wednesday 18th of April 2012 01:25:18 AM
Old 04-18-2012
Question merging multiple lines into single line

Hi,

1. Each message starts with date
2. There is blank line between each message
3. Each message does not contain same number of lines.

Any help in merging multiple lines in each message to a single line is much appreciated.

AIX: Korn Shell

Error log file looks like below.

Code:
2012-04-17-14.19.13.003447 ZRC=0x800D002B=-2146631637=SQLM_RC_EVFULL "monitor full of data"
          DIA8052C The Event Monitor "" has reached its file capacity. Delete
          the files in the target directory "" or move them to another
          directory.

2012-04-17-14.19.13.003798 ADM2017C  The Event Monitor "DB2DETAILDEADLOCK" has reached its file capacity. Delete the files in the target directory       "/db/db2cct2/cct2/db2cct2/NODE0000/SQL00001/db2event/db2detaildeadloc
k" or move them to another directory.

2012-04-17-14.19.13.642294

2012-04-17-13.59.56.765915

2012-04-17-11.14.12.503246 ADM5501I  DB2 is performing lock escalation. The affected application
          is named "db.8", and is associated with the workload name
          "SYSDEFAULTUSERWORKLOAD" and application ID
          "10.207.177.21.46719.120417111411"  at member "8". The total number
          of locks currently held is "403", and the target number of locks to
          hold is "201". The current statement being executed is "DELETE FROM
          CC.DOWNLOAD where DNLD IN (select DNLD_ID from
          CC.DOWNLOAD where file_id=3325) AND upd_ts >= current
          timestamp - 1 days".

2012-04-17-11.14.12.504032 ADM5502W  The escalation of "400" locks on table "CC.DOWNLOAD" to lock intent "X" was successful.

Thanks in advance

Moderator's Comments:
Mod Comment Welcome to the UNIX and Linux Forums. Please use code tags. Video tutorial on how to use them

Last edited by Scrutinizer; 04-18-2012 at 03:07 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Splitting a single line into multiple lines

I have a case where, I need to look into a file. Go to each line of the file, find the length of the line, if the length of the line is more than 75 chars, I need to split the line into multiple lines of 75chars max. If the length of the line is less than 75, we need not do anything. So at the... (4 Replies)
Discussion started by: thanuman
4 Replies

2. Shell Programming and Scripting

replacing multiple lines with single line

Can any one give me the idea on replacing multiple blank lines with a single blank line? Please conside it for a file having more than 100 number of characters. Regards, Siba (3 Replies)
Discussion started by: siba.s.nayak
3 Replies

3. Shell Programming and Scripting

Getting multiple messy lines into one single line

I have a file that contains the following: :@:176:@:4:@:name:@:file:@:this is a summary:@:description can be long but who knows can even have <br> tags.:@:how to:@:type:@:18544:@:550:@:400:END: :@:177:@:9:@:name:@:file:@:summary:@:this will containg... (18 Replies)
Discussion started by: sysrenan
18 Replies

4. Shell Programming and Scripting

Multiple lines into a single line

Hi, I've some files with the following data and i need to convert the lines between the separator ---, into a single line. I've tried with the paste cmd but my main problem is that the number of lines between the separator is not fix, it can very between 1-4 lines. Input --- 2010-02-22... (4 Replies)
Discussion started by: RickyC9999
4 Replies

5. Shell Programming and Scripting

Multiple lines into a single line on Ubuntu 10.04

Hi, I've some files with the following data and i need to convert the lines between the separator ---, into a single line. I've tried with the paste cmd but my main problem is that the number of lines between the separator is not fix, it can vary between 1-4 lines. Input --- 2010-02-22... (8 Replies)
Discussion started by: RickyC9999
8 Replies

6. Shell Programming and Scripting

Combine multiple lines in single line

This is related to one of my previous post but now with a slight difference: I need the "Updated:" to be in one line as well as the "Information:" on one line as well. These are in multiple lines right now as seen below. These can have 2 or more lines that needs to be in one line. System name:... (8 Replies)
Discussion started by: The One
8 Replies

7. Shell Programming and Scripting

Multiple lines in a single column to be merged as a single line for a record

Hi, I have a requirement with, No~Dt~Notes 1~2011/08/1~"aaa bbb ccc ddd eee fff ggg hhh" Single column alone got splitted into multiple lines. I require the output as No~Dt~Notes 1~2011/08/1~"aaa<>bbb<>ccc<>ddd<>eee<>fff<>ggg<>hhh" mean to say those new lines to be... (1 Reply)
Discussion started by: Bhuvaneswari
1 Replies

8. Shell Programming and Scripting

Combine multiple lines into single line

Hi All , I have a file with below data # User@Host: xyz @ # Query_time: t1 Lock_time: t2 Rows_sent: n1 Rows_examined: n2 SET timestamp=1396852200; select count(1) from table; # Time: 140406 23:30:01 # User@Host: abc @ # Query_time: t1 Lock_time: t2 Rows_sent: n1 Rows_examined:... (6 Replies)
Discussion started by: rakesh_411
6 Replies

9. UNIX for Beginners Questions & Answers

Merging multiple lines into single line based on one column

I Want to merge multiple lines based on the 1st field and keep into single record. SRC File: AAA_POC_DB.TAB1 AAA_POC_DB.TAB2 AAA_POC_DB.TAB3 AAA_POC_DB.TAB4 BBB_POC_DB.TAB1 BBB_POC_DB.TAB2 CCC_POC_DB.TAB6 OUTPUT ----------------- 'AAA_POC_DB','TAB1','TAB2','TAB3','TAB4'... (10 Replies)
Discussion started by: raju2016
10 Replies

10. UNIX for Beginners Questions & Answers

Multiple lines to single line

I have code as below # create temporary table `temp4277`(key(waybill_no)) select waybill_no,concat_ws('',card_type,card_series_no) cardinfo from rfid_temp_ticket where waybill_no='4277' group by... (4 Replies)
Discussion started by: kaushik02018
4 Replies
NETDISCO-MIBS-DOWNLOAD(1)				User Contributed Perl Documentation				 NETDISCO-MIBS-DOWNLOAD(1)

NAME
netdisco-mibs-download - Downloader for the Netdisco MIB bundle VERSION
This document refers to version 1.0700 of netdisco-mibs-download DESCRIPTION
Run this program to download the Netdisco MIB files bundle from Sourceforge. If the download is successful, you can run the netdisco-mibs- install program to unpack and install them. If the download fails, you can visit the Netdisco Sourceforge downloads page, details of which are given by this program on failure, and get the bundle yourself. ENVIRONMENT
Setting the environment variable "MIBS_DEBUG" to a true value will display information about failed mirror site downloads. EXIT CODES
0 - Successful download 1 - Failed download, possibly no available mirror 2 - Program must be run as root, and you are not root 3 - Error regarding the download directory AUTHOR
Oliver Gorwits "<oliver@cpan.org>" COPYRIGHT &; LICENSE Copyright (c) The University of Oxford 2007. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA perl v5.14.2 2012-08-15 NETDISCO-MIBS-DOWNLOAD(1)
All times are GMT -4. The time now is 09:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy