Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Remove newline character from column spread over multiple lines in a file Post 303038976 by Prathmesh on Wednesday 18th of September 2019 02:00:12 PM
Old 09-18-2019
Thanks RudiC. This worked perfectly well.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Can I spread commands over multiple lines?

Below an example of what I mean. The first attempt does what I want; the second doesn't, because bash assumes a line break means the end of an individual "command unix". Is there some way that I can convince bash to parse out, eg, to the closing parenthesis? I'm thinking this would allow for... (1 Reply)
Discussion started by: tphyahoo
1 Replies

2. Shell Programming and Scripting

removing pattern which is spread in multiple lines

I have several huge files wich contains oracle table creation scripts as follows: I would need to remove the pattern colored in red above. Any sed/awk/pearl code will be of much help. Thanks (2 Replies)
Discussion started by: sabyasm
2 Replies

3. Shell Programming and Scripting

How to remove a newline character at the end of filename

Hi All, I have named a file with current date,time and year as follows: month=`date | awk '{print $2}'` date=`date | awk '{print $3}'` year=`date | awk '{print $6}'` time=`date +%Hh_%Mm_%Ss'` filename="test_"$month"_"$date"_"$year"_"$time".txt" > $filename The file is created with a... (2 Replies)
Discussion started by: amio
2 Replies

4. Shell Programming and Scripting

To remove the newline character while appending into a file

Hi All, We append the output of a file's size in a file. But a newline character is appended after the variable. Pls help how to clear this. filesize=`ls -l test.txt | awk `{print $5}'` echo File size of test.txt is $filesize bytes >> logfile.txt The output we got is, File size of... (4 Replies)
Discussion started by: amio
4 Replies

5. Shell Programming and Scripting

Remove newline character conditionally

Hi All, I have 5000 records like this Request_id|Type|Status|Priority|Ticket Submitted Date and Time|Actual Resolved Date and Time|Current Ticket Owner Group|Case final Ticket Owner Group|Customer Severity|Reported Symptom/Request|Component|Hot Topic|Reason for Missed SLA|Current Ticket... (2 Replies)
Discussion started by: j_53933
2 Replies

6. Shell Programming and Scripting

[AWK] handeling data spread on multiple lines

Hello all, first off great forum. Now for my little problem. Using RHEL 5.4 and awk. Been doing code since a few month. So just starting. My problem is handeling data on multiple lines. { if ($1 != LASTKEY && h ~ /.*\/s_fr_/) { checkgecos( h, h ) h="" ... (2 Replies)
Discussion started by: maverick72
2 Replies

7. Shell Programming and Scripting

Remove \n <newline> character inside the records.

Hi, In my file, I have '\n' characters inside a single record. Because of this, a single records appears in many lines and looks like multiple records. In the below file. File 1 ==== 1,nmae,lctn,da\n t 2,ghjik,o\n ut,de\n fk Expected output after the \n removed File 2 =====... (5 Replies)
Discussion started by: machomaddy
5 Replies

8. Shell Programming and Scripting

Remove newline character between two delimiters

hi i am having delimited .dat file having content like below. test.dat(5 line of records) ====== PT2~Stag~Pt2 Stag Test. Updated~PT2 S T~Area~~UNCEF R20~~2012-05-24 ~2014-05-24~~ PT2~Stag y~Pt2 Stag Test. Updated~PT2 S T~Area~METR~~~2012-05-24~2014-05-24~~test PT2~Pt2 Stag Test~~PT2 S... (4 Replies)
Discussion started by: sushine11
4 Replies

9. Shell Programming and Scripting

Remove last newline character..

Hi all.. I have a text file which looks like below: abcd efgh ijkl (blank space) I need to remove only the last (blank space) from the file. When I try wc -l the file name,the number of lines coming is 3 only, however blank space is there in the file. I have tried options like... (14 Replies)
Discussion started by: Sathya83aa
14 Replies

10. Shell Programming and Scripting

How to remove newline character if it is the only character in the entire file.?

I have a file which comes every day and the file data look's as below. Vi abc.txt a|b|c|d\n a|g|h|j\n Some times we receive the file with only a new line character in the file like vi abc.txt \n (8 Replies)
Discussion started by: rak Kundra
8 Replies
JH_INSTALLECLIPSE(1)						    Javahelper						      JH_INSTALLECLIPSE(1)

NAME
jh_installeclipse - Installs eclipse features built by pde-build into package build directories SYNOPSIS
jh_installeclipse [debhelperoptions] [--install-name=name] [--pde-build-dir=dir] [feature[...]] DESCRIPTION
jh_installeclipse is a javahelper program that handles installing eclipse features built by pde-build into package build directories. These features can be specified either in the package's eh-install file or via command-line. jh_installeclipse uses debhelper behind the scenes and are therefore subject to the compat level (e.g. when parsing eh-install files). jh_installeclipse will replace all the embedded orbit depends imported by jh_generateorbitdeps with symlinks post install. The symlinked jar files will also be used to populate ${orbit:Depends} variable. FILES
debian/package.eh-install List the eclipse features to install into each package and optionally under which name. The format is a set of lines, where each line lists a file or files to install, and at the end of the line tells the name it should be installed under. You may use wildcards in the names of the files to install. If name is not present, eh_install will either use the install name given on the command line or attempt to guess it from the package name. It is perfectly legal for two or more features to be installed under the same name. OPTIONS
--install-name=name Specifies the name to install under if it is not given in the file. It is perfectly legal to install more than one feature under the same name. --pde-build-dir=dir Specifies the directory from where pde-build was run. Defauls to "debian/.eclipse_build". EXAMPLE
Suppose your package builds org.eclipse.emf and org.eclipse.xsd and you want to put org.eclipse.emf into eclipse-emf and org.eclipse.xsd into eclipse-xsd. Then make debian/eclipse-emf.eh-install contain: org.eclipse.emf and debian/eclipse-xsd.eh-install contain: org.eclipse.xsd jh_installeclipse will then install org.eclipse.emf into usr/share/eclipse/dropins/emf/ and xsd into usr/share/eclipse/dropins/xsd/. In case your package is not called eclipse-name, or you want to install two different features into the same package, you will have to provide a name. Suppose you wanted to install both eclipse above into a single package called foo, then debian/foo.eh-install should contain: org.eclipse.emf emf org.eclipse.xsf xsd SEE ALSO
debhelper(7) This program is a part of javahelper and uses debhelper as backend. There are also tutorials in /usr/share/doc/javahelper. AUTHOR
Niels Thykier <niels@thykier.net> COPYRIGHT AND LICENSE
Copyright 2010 by Niels Thykier This tool is free software; you may redistribute it and/or modify it under the terms of GNU GPL 2. 0.43 2011-03-24 JH_INSTALLECLIPSE(1)
All times are GMT -4. The time now is 01:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy