Home Man
Search
Today's Posts
Register

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

Tags
join, parse, shell scripts, 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
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
join lines in file thailand Shell Programming and Scripting 1 06-13-2012 02: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 04:12 PM
Join 2 separate strings into one with alternate tokens. sikku Shell Programming and Scripting 31 07-06-2011 09:22 AM
how do i join two lines from a input file suryanarayan Shell Programming and Scripting 9 02-02-2011 01:55 PM
Separate lines from text file ramse8pc Shell Programming and Scripting 3 02-02-2010 02:45 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 08:42 PM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password