# Question:Huge expression one term by line into archive.txt

## Question:Huge expression one term by line into archive.txt

Maple

Hello, I am a student of physics, actually I study Celestial Mechanics.

I am working on a Maple program that the output are very huge expressions of up to three thousand lines.

My objective is to select certain terms, the difficult to do that it's because when I save such expression into a archive.txt the terms are separated between two lines, what difficults a lot to create a AWK algoritm to do such a task.

What I want to do is to write these terms in a way it has one term by line, an example:

`Easr3Vc*s2 := 3/16*e*cosfK*sinfJ*sinfK*cos(2*ele+g-anom)+3/16*e*cosfK*sinfJ*sinfK*cos(2*ele+g+anom)-3/32*e*cosfK*sinfJ*sinfK*cos(2*ele+g-2*h+2*om-anom)-3/32*e*cosfK*sinfJ*sinfK*cos(2*ele+g-2*h+2*om+anom)-3/16*e*cosfJ^2*sinfK^2*sindincl^2*cos(-anom+2*ele)-3/16*e*cosfJ^2*sinfK^2*sindincl^2*cos(anom+2*ele)-\3/32*e*cosfJ^2*sinfK^2*sindincl^2*cos(2*ele-2*g-anom)-3/32*e*cosfJ^2*sinfK^2*sindincl^2*cos(2*ele-2*g+anom)+3/16*e*cosfJ^2*sinfK^2*sindincl^2*cos(-anom+2*g`
`And i wish:`
` 3/16*e*cosfK*sinfJ*sinfK*cos(2*ele+g-anom)+`
`3/16*e*cosfK*sinfJ*sinfK*cos(2*ele+g+anom)`
`-3/32*e*cosfK*sinfJ*sinfK*cos(2*ele+g-2*h+2*om-anom), etc.`
`Thnx for the help.`
` `
﻿