[Jprogramming] comparing 2 scripts
David Mitchell
davidmitchell at att.net
Sun Nov 20 22:11:58 HKT 2011
I have used these 2 methods on Windows and J6.
0:
Assume f1 and f2 contain the full file path to two J scripts.
1:
load'compare'
load'files'
(fread fn1) compare_jcompare_ (fread fn2)
2:
load'task'
shell 'diff ',f1,' ',f2
--
David Mitchell
On 11/20/2011 8:09, Ian Clark wrote:
> Has anyone written a verb to compare two scripts? (Just to save me
> writing one...)
>
> Two literal nouns with LF-separated lines will do. Changed / deleted /
> inserted lines.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
More information about the Programming
mailing list