{"id":24110400,"url":"https://github.com/kometen/compare","last_synced_at":"2025-02-28T05:18:38.607Z","repository":{"id":141923200,"uuid":"250919630","full_name":"kometen/compare","owner":"kometen","description":"Compare sets and print result to console","archived":false,"fork":false,"pushed_at":"2024-11-12T16:51:01.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T01:14:57.836Z","etag":null,"topics":["hashmap","intersection","rust","symmetric-difference"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kometen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-29T00:08:54.000Z","updated_at":"2024-11-12T16:51:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"cb21ff89-2b8c-4aea-a615-c1ba0ecc1ab1","html_url":"https://github.com/kometen/compare","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kometen%2Fcompare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kometen%2Fcompare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kometen%2Fcompare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kometen%2Fcompare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kometen","download_url":"https://codeload.github.com/kometen/compare/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241104320,"owners_count":19910412,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hashmap","intersection","rust","symmetric-difference"],"created_at":"2025-01-11T01:15:00.168Z","updated_at":"2025-02-28T05:18:38.583Z","avatar_url":"https://github.com/kometen.png","language":"Rust","readme":"# compare\nCompare sets and print result to console\n\nThis will read a text-file and split it using a delimiter. It will either show\n[i] intersection (in all sets) or [s] symmetric difference (only in one set).\n\nA text-file in CSV-format is what I had in mind when I began coding it but can be\nused for any text-file. If the delimiter is found and the column is within bounds\nit can do some work.\n\nExample where delimiter is semicolon (;), column is two (2) and operation is\nfirst intersection (i) and secondly symmetric difference (s).\n\n$ cat a.csv  \n1;a;one  \n2;b;two  \n3;c;three  \n4;d;four  \n5;e;five  \n\n$ cat b.csv   \n3;c;three  \n4;d;four  \n5;e;five  \n6;f;six  \n7;g;seven  \n\n$ compare -f a.csv -f b.csv -d ';' -c 2 -o i  \nfive  \nfour  \nthree  \n\n$ compare -f a.csv -f b.csv -d ';' -c 2 -o s  \none  \nsix  \nseven  \ntwo  \n\n\n\nCan use three or more files for comparison.\n\n$ cat c.csv  \n5;e;five  \n6;f;six  \n7;g;seven  \n8;h;eight  \n9;i;nine  \n\n$ compare -f a.csv -f b.csv -f c.csv -d ';' -c 2 -o i  \nfive  \n\nTo build it use 'cargo build' or 'cargo build --release'.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkometen%2Fcompare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkometen%2Fcompare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkometen%2Fcompare/lists"}