Pascal Jasmin <godspiral2000 <at> yahoo.ca> writes:

> 
> as long as the last line ends with LF, it will cut on LF.

yes, but when it does not, you need a function such as that found in Ch. 17 of
"learning j" - 

tidy =: 3 : 0
y. =. y. , (LF ~: {: y.) # LF   NB. supply LF
(y. ~: CR) # y.                 NB. remove CR
)

update to j601 is an exercise for the reader.



----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to