Home Man
Today's Posts

BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Help to join separate lines in a single one from xml file

join, parse, xml

👤 Login to reply

Thread Tools Search this Thread
# 8  
Old 02-24-2018
Hmmm ... strange. Identical to what I get. Try again either proposdal in post#4 after dropping the ^\t| from the gsub regex.

Last edited by RudiC; 02-24-2018 at 03:46 PM..
# 9  
Old 02-25-2018
Hi RudiC,

Thank you.

I discovered why the output differs. The line ending of the file is CRLF since I´m working on Windows. I changed the line ending to LF and the output is the same as yours.
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Ls to text file on separate lines newbie100 UNIX for Beginners Questions & Answers 2 11-03-2016 06:53 PM
Splitting a single xml file into multiple xml files Narendra921631 Shell Programming and Scripting 3 03-03-2016 02:50 PM
How to generate one long column by merging two separate two columns in a single file? forevertl UNIX for Dummies Questions & Answers 4 01-11-2014 12:30 AM
Join lines in a file???? foolishbar UNIX for Dummies Questions & Answers 8 04-15-2013 06:01 PM
How to add the multiple lines of xml tags before a particular xml tag in a file mjavalkar Shell Programming and Scripting 0 06-25-2012 04:54 PM
How to separate a single column file into files of the same size (i.e. number of rows)? evelibertine UNIX for Dummies Questions & Answers 2 02-02-2012 04:12 PM
Separate lines from text file ramse8pc Shell Programming and Scripting 3 02-02-2010 02:45 PM
Using AWK to separate data from a large XML file into multiple files JRy Shell Programming and Scripting 16 10-17-2009 08:06 PM
Join in a single line variable number of lines cgkmal Shell Programming and Scripting 4 08-03-2009 06:52 AM
Separate lines in a single '|' separated line hidnana Shell Programming and Scripting 3 03-17-2008 10:16 AM

All times are GMT -4. The time now is 11:01 PM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
Show Password

Not a Forum Member?
Forgot Password?