You can of course work on each element in a boxed string.

If I were you and beginning to learn J I would concentrate on one thing at
a time.

Collect all the strings together, write or add them out as lines in a
result file.

In the next step you can read that intermediary result file and do the
operations you want on them.

Once you have finished all the steps you can begin to refine each step or
eliminate as you see fit.

Going in for heavy J stuff while learning J at the same time may not be the
best way to go.

As you see you are getting expert advice as you go along so you probably
know by now that your work is doable in J and many people know how to do it
and have done similar things in the past.

2011/11/8 Skip Cave <s...@caveconsulting.com>

> Brian Schott sugessted the delete blanks verb. It looks good, but there's a
> problem:
>
>   aa =: > ('starttag;'crlf,'endtag') getTagContents shell zipth, filepth
>
>   aa
>            This is the first string I want
> This is the second string I want
>
> So now it try:
>
>   deb aa
> |length error: deb
> |       deb aa
>
> This works:
>
>   deb ,aa
> This is the first string I want This is the second string I want
>
> But that runs all the strings together.
>
> How do I delete the blanks in each line of bb without loosing the shape?
>
> Skip
>
> On Tue, Nov 8, 2011 at 11:39 AM, Brian Schott <schott.br...@gmail.com
> >wrote:
>
> >   (;#)deb '   abc   fghi j  '
> > +----------+--+
> > |abc fghi j|10|
> > +----------+--+
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Björn Helgason, Verkfræðingur
Fornustekkum II
781 Hornafirði,
t-póst: gos...@gmail.com
gsm: +3546985532
twitter: @flugfiskur
http://groups.google.com/group/J-Programming


Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans

góður kennari getur stigið á tær án þess að glansinn fari af skónum
          /|_      .-----------------------------------.
         ,'  .\  /  | Með léttri lund verður        |
     ,--'    _,'   | Dagurinn í dag                     |
    /       /       | Enn betri en gærdagurinn  |
   (   -.  |        `-----------------------------------'
   |     ) |         (\_ _/)
  (`-.  '--.)       (='.'=)   ♖♘♗♕♔♙
   `. )----'        (")_(") ☃☠
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to