Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Join lines in a file 1

Status
Not open for further replies.

mrmac228

IS-IT--Management
May 27, 2003
255
0
0
GB
I have a file which has a format of:

start-tag,value,value,value,
,value,
,value,
,value
start-tag,value,value,value,
,value,
,value
start-tag,value,value,value,
start-tag,value,value,value,
,value

and I need all the lines associated with a start tag on the same line so that I get:

start-tag,value,value,value,,value,,value,,value
start-tag,value,value,value,,value,,value
start-tag,value,value,value,
start-tag,value,value,value,,value

I can join adjacent lines but the variable lines associated with the record is causing me grief, any pointers would be appreciated.


I love deadlines. I like the whooshing sound they make as they fly by - Douglas Adams
 
Mr Embarased here.

Found my solution by using the search feature. Stupidly the solution I found was from myself in June 07.

Age doesn't come itself.

Apologies for not using search first.

I love deadlines. I like the whooshing sound they make as they fly by - Douglas Adams
 
That is thread822-1378562 in case anyone is interested.

Code what you mean,
and mean what you code!
But by all means post your code!

Razalas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top