This script defines comparison utilities and is included in the J standard library. Definitions are loaded into the jcompare locale with cover functions in z.
C | compare |
F | fcompare, fcompares |
Compare character data.
text1 compare text2
Arguments may be character strings or character matrices with trailing blanks ignored.
Result shows lines not matched, in form:
n [l] text
where:
Compare two text files.
opt fcompare files
where:
fcompare '~mywork/myutil.ijs ~/jbak/mywork/myutil.ijs'
'/myutil.ijs' fcompare jpath '~mywork';'/jbak/mywork'
as fcompare but ignoring different line separators