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

join, parse, shell scripts, xml

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 04: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 Im working on Windows. I changed the line ending to LF and the output is the same as yours.

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Ls to text file on separate lines newbie100 UNIX for Beginners Questions & Answers 2 11-03-2016 07:53 PM
Splitting a single xml file into multiple xml files Narendra921631 Shell Programming and Scripting 3 03-03-2016 03: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 01:30 AM
Join lines in a file???? foolishbar UNIX for Dummies Questions & Answers 8 04-15-2013 07: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 05:54 PM
join lines in file thailand Shell Programming and Scripting 1 06-13-2012 03:50 AM
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 05:12 PM
read one line file and separate into multiple lines erlanq Shell Programming and Scripting 1 12-03-2011 06:00 AM
Join 2 separate strings into one with alternate tokens. sikku Shell Programming and Scripting 31 07-06-2011 10:22 AM
how do i join two lines from a input file suryanarayan Shell Programming and Scripting 9 02-02-2011 02:55 PM
Read file contents and separate the lines when completes with = dbashyam Shell Programming and Scripting 6 12-14-2010 07:59 AM
Separate lines from text file ramse8pc Shell Programming and Scripting 3 02-02-2010 03:45 PM
Using AWK to separate data from a large XML file into multiple files JRy Shell Programming and Scripting 16 10-17-2009 09:06 PM
Join in a single line variable number of lines cgkmal Shell Programming and Scripting 4 08-03-2009 07:52 AM
Separate lines in a single '|' separated line hidnana Shell Programming and Scripting 3 03-17-2008 11:16 AM