Sponsored Content
Top Forums Shell Programming and Scripting Multi line document to single lines based on occurance of string Post 302488795 by anurag.singh on Tuesday 18th of January 2011 11:49:10 AM
Old 01-18-2011
Code:
sed 's/\(.\)dwh/\1\
dwh/g' inputFile

To avoid having 1st line as new line.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Merge multi-lines into one single line

Hi, Can anyone help me for merge the following multi-line log which beginning with a number and time: into one line. For each line need to delete the return and add a space. Please see the red color line. *****Original Log*****... (4 Replies)
Discussion started by: happyday
4 Replies

2. Shell Programming and Scripting

Help on Merge multi-lines into one single line

Hello, Can anyone let me know how to use Perl script to Merge following multi-lines into one single line... ***** Multi-line***** FILE_Write root OK Tue Jul 01 00:00:00 2008 cl_get_path file descriptor = 1 FILE_Write root OK ... (5 Replies)
Discussion started by: happyday
5 Replies

3. Shell Programming and Scripting

merge lines into single line based on symbol \t

The symbols are \t and \t\t (note: not tab) If the line starts with \t merge them into a single line upto symbol \t\t \t\t to end and start new line I able to join in a single line but not ending at \t\t and I completely confused help would be appreciated:b::D Input \ta tab XXXXXXXXXX \te... (5 Replies)
Discussion started by: repinementer
5 Replies

4. Shell Programming and Scripting

Multi lines to single line

HI, My input file contains the data as like below: A1234119993 B6271113 Bghjkjk A1234119992 B6271113hi Bghjkjkmkl the output i require is : A1234119993 B6271113 Bghjkjk A1234119992 B6271113hi Bghjkjkmkl Please help me in this. Thanks (6 Replies)
Discussion started by: pandeesh
6 Replies

5. Shell Programming and Scripting

Multi-line filtering based on multi-line pattern in a file

I have a file with data records separated by multiple equals signs, as below. ========== RECORD 1 ========== RECORD 2 DATA LINE ========== RECORD 3 ========== RECORD 4 DATA LINE ========== RECORD 5 DATA LINE ========== I need to filter out all data from this file where the... (2 Replies)
Discussion started by: Finja
2 Replies

6. Shell Programming and Scripting

joining multi-line file into single lines

Hi, I have a file like mentioned below..For each specific id starting with > I want to join the sequence in multiple lines to a single line..Is there a simple way in awk or sed to do this >ENST00000558922 cdna:KNOWN TCCAGGATCCAGCCTCCCGATCACCGCGCTAGTCCTCGCCCTGCCTGGGCTTCCCCAGAG... (2 Replies)
Discussion started by: Diya123
2 Replies

7. Shell Programming and Scripting

Returning multiple outputs of a single line based on previous repeated lines

Hello, I am trying to return a time multiple times from a file that has varying output just before the time instance, i.e. cat jumped cat jumped cat jumped time = 1.1 cat jumped cat jumped time = 1.2 cat jumped cat jumped time = 1.3 In this case i would like to output a time.txt... (6 Replies)
Discussion started by: ryddner
6 Replies

8. 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

9. Shell Programming and Scripting

Help with reformat single-line multi-fasta into multi-line multi-fasta

Input File: >Seq1 ASDADAFASFASFADGSDGFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSD >Seq2 SDASDAQEQWEQeqAdfaasd >Seq3 ASDSALGHIUDFJANCAGPATHLACJHPAUTYNJKG ...... Desired Output File >Seq1 ASDADAFASF ASFADGSDGF SDFSDFSDFS DFSDFSDFSD FSDFSDFSDF SD >Seq2 (4 Replies)
Discussion started by: patrick87
4 Replies

10. UNIX for Beginners Questions & Answers

Merge multi-lines into one single line using shell script or Linux command

Hi, Can anyone help me for merge the following multi-line log which beginning with a " and line ending with ": into one line. *****Original Log***** 087;2008-12-06;084403;"mc;;SYHLR6AP1D\LNZW;AD-703;1;12475;SYHLR6AP1B;1.1.1.1;0000000062;HGPDI:MSISDN=12345678,APNID=1,EQOSID=365;... (3 Replies)
Discussion started by: rajeshlinux2010
3 Replies
deb-changes(5)							    dpkg suite							    deb-changes(5)

NAME
       deb-changes - Debian changes file format

SYNOPSIS
       filename.changes

DESCRIPTION
       Each Debian upload is composed of a .changes control file, which contains a number of fields.  Each field begins with a tag, such as Source
       or Binary (case insensitive), followed by a colon, and the body of the field.  Fields are delimited only by field tags.	 In  other  words,
       field  text  may  be  multiple  lines in length, but the installation tools will generally join lines when processing the body of the field
       (except in case of the multiline fields Description, Changes, Files, Checksums-Sha1 and Checksums-Sha256, see below).

       The control data might be enclosed in an OpenPGP ASCII Armored signature, as specified in RFC4880.

FIELDS
       Format: format-version (required)
	      The value of this field declares the format version of the file.	The syntax of the field value is a version number with a major and
	      minor  component.  Backward incompatible changes to the format will bump the major version, and backward compatible changes (such as
	      field additions) will bump the minor version.  The current format version is 1.8.

       Date: release-date (required)
	      The date the package was built or last edited.  It must be in the same format as the date in a deb-changelog(5) entry.

	      The value of this field is usually extracted from the debian/changelog file.

       Source: source-name [(source-version)] (required)
	      The name of the source package.  If the source version differs from the binary version, then the source-name will be followed  by  a
	      source-version in parenthesis.  This can happen when the upload is a binary-only non-maintainer upload.

       Binary: binary-package-list (required)
	      This folded field is a space-separated list of binary packages to upload.

       Architecture: arch-list
	      Lists the architectures of the files currently being uploaded.  Common architectures are amd64, armel, i386, etc.  Note that the all
	      value is meant for packages that are architecture independent.  If the source for the package is also being  uploaded,  the  special
	      entry source is also present.  Architecture wildcards must never be present in the list.

       Version: version-string (required)
	      Typically,  this	is the original package's version number in whatever form the program's author uses.  It may also include a Debian
	      revision number (for non-native packages).  The exact format and sorting algorithm are described in deb-version(7).

       Distribution: distributions (required)
	      Lists one or more space-separated distributions where this version should be installed when it is uploaded to the archive.

       Urgency: urgency (recommended)
	      The urgency of the upload.  The currently known values, in increasing order  of  urgency,  are:  low,  medium,  high,  critical  and
	      emergency.

       Maintainer: fullname-email (required)
	      Should  be  in the format "Joe Bloggs <jbloggs@example.org>", and is typically the person who created the package, as opposed to the
	      author of the software that was packaged.

       Changed-By: fullname-email
	      Should be in the format "Joe Bloggs <jbloggs@example.org>", and is typically the person who prepared the package	changes  for  this
	      release.

       Description: (recommended)
	binary-package-name - binary-package-summary
	      This  multiline  field  contains a list of binary package names followed by a space, a dash ('-') and their possibly truncated short
	      descriptions.

       Closes: bug-number-list
	      A space-separated list of bug report numbers that have been resolved with this upload.  The distribution archive software might  use
	      this field to automatically close the referred bug numbers in the distribution bug tracking system.

       Binary-Only: yes
	      This field denotes that the upload is a binary-only non-maintainer build.  It originates from the binary-only=yes key/value from the
	      changelog matadata entry.

       Built-For-Profiles: profile-list
	      This field specifies a whitespace separated list of build profiles that this upload was built with.

       Changes: (required)
	changelog-entries
	      This multiline field contains the concatenated text of all changelog entries that are part of the upload.   To  make  this  a  valid
	      multiline field empty lines are replaced with a single full stop ('.') and all lines are indented by one space character.  The exact
	      content depends on the changelog format.

       Files: (required)
	md5sum size section priority filename
	      This multiline field contains a list of files with an md5sum, size, section and priority for each one.

	      The first line of the field value (the part on the same line as the field name followed by a colon) is always empty.  The content of
	      the field is expressed as continuation lines, one line per file.	Each line consists of space-separated entries describing the file:
	      the md5sum, the file size, the file section, the file priority, and the file name.

	      This field lists all files that make up the upload.  The list of files in this field must match the  list  of  files  in	the  other
	      related Checksums fields.

       Checksums-Sha1: (required)
       Checksums-Sha256: (required)
	checksum size filename
	      These  multiline fields contain a list of files with a checksum and size for each one.  These fields have the same syntax and differ
	      only in the checksum algorithm used: SHA-1 for Checksums-Sha1 and SHA-256 for Checksums-Sha256.

	      The first line of the field value (the part on the same line as the field name followed by a colon) is always empty.  The content of
	      the field is expressed as continuation lines, one line per file.	Each line consists of space-separated entries describing the file:
	      the checksum, the file size, and the file name.

	      These fields list all files that make up the upload.  The list of files in these fields must match the list of files  in	the  Files
	      field and the other related Checksums fields.

BUGS
       The  Files  field  is  inconsistent  with  the  other  Checksums  fields.   The	Change-By and Maintainer fields have confusing names.  The
       Distribution field contains information about what is commonly referred to as a suite.

SEE ALSO
       deb-src-control(5), deb-version(7).

1.19.0.5							    2018-04-16							    deb-changes(5)
All times are GMT -4. The time now is 01:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy