Skip to content

A simple groovy script to compare 2 lists to display the common items and items unique to each list.

Notifications You must be signed in to change notification settings

aimtiaz11/compare-lists

Repository files navigation

compare-list

A simple groovy script to compare 2 lists to display the common items and mismatches.

Running

Populate the input-file1.txt and input-file2.txt and run:groovy compare-list.groovy.

Sample output

Total in sourceList: 3
Total in targetList: 3
**** Items in sourceList not in targetList list: 2 ****
1

2

**** Items in targetList not in sourceList list: 2 ****
4

5

***** common items *****
3

About

A simple groovy script to compare 2 lists to display the common items and items unique to each list.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages