I think you need an =: try

    cleanString =: monad define
deb"1 y rplc"1 '= '
)


On 11/9/2011 12:17 PM, Skip Cave wrote:
> OK, Now I am working on real data.
>
> This works:
>
> getSkipsTags =: ('RESULT[0]';crlf,'CONFIDENCE'
> )&  getTagContents
>   >  getSkipsTags shell zipth, filepth
>                   = u s air one ninety one
>                   = yes
>
> So, I have captured the strings I want from the log.gz file. If I put the
> result in a noun like this:
>
>   bb =:>  getSkipsTags shell zipth, filepth
>
> Now I can operate on the noun to replace the equals sign with a blank, and
> then remove all the spaces by this:
>
>     deb "1 bb rplc"1 '= '
> u s air one ninety one
> yes
>
> These are the final result strings that I want. Now I want to do the same
> as the above, but make a single verb that will take the string as a right
> argument, replace all equals signs with a space, and then delete all the
> spaces.
>
>     cleanString monad define
> deb"1 y rplc"1 '= '
> )
> cleanString (3 : 'deb"1 y rplc"1 ''= ''')
>
>     bb
>                   = u s air one ninety one
>                   = yes
>
>     cleanString bb
> |value error: cleanString
> |       cleanString bb
>
>
> What am I doing wrong?
>
> Skip
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to