{"id":21853525,"url":"https://github.com/abhi11210646/wc-tool","last_synced_at":"2025-03-21T18:43:34.220Z","repository":{"id":213312964,"uuid":"733555502","full_name":"abhi11210646/wc-tool","owner":"abhi11210646","description":"Replica of a Linux utility: Word Count (WC)","archived":false,"fork":false,"pushed_at":"2024-07-19T08:58:37.000Z","size":5237,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-26T13:31:10.367Z","etag":null,"topics":["cmd","coding-challenge","coding-interviews","go","golang","wc","wc-tool"],"latest_commit_sha":null,"homepage":"https://www.ibm.com/docs/en/aix/7.3?topic=w-wc-command","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abhi11210646.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-12-19T15:36:41.000Z","updated_at":"2024-07-19T08:58:41.000Z","dependencies_parsed_at":"2023-12-19T19:19:18.415Z","dependency_job_id":"c7d54b67-4a06-4f69-bf90-7a01a587b507","html_url":"https://github.com/abhi11210646/wc-tool","commit_stats":null,"previous_names":["abhi11210646/wc-tool"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhi11210646%2Fwc-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhi11210646%2Fwc-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhi11210646%2Fwc-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhi11210646%2Fwc-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhi11210646","download_url":"https://codeload.github.com/abhi11210646/wc-tool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244852133,"owners_count":20521151,"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":["cmd","coding-challenge","coding-interviews","go","golang","wc","wc-tool"],"created_at":"2024-11-28T01:25:34.053Z","updated_at":"2025-03-21T18:43:34.198Z","avatar_url":"https://github.com/abhi11210646.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Build Your Own wc Tool - Coding Challenge\n\n\nBuild the GO program first.\n\n```console\ngo build -o ./wc ./cmd/main.go\n```\n\nExecute:\n\n```console\nabhisekhs@abhisekhs-ThinkPad-L490:~/personal/Projects/wc-tool$ ./wc test.txt test2.txt\n2  5  12   test.txt\n6  8  18   test2222.txt\n8  13 30   total\n\n```\n```console\nabhisekhs@abhisekhs-ThinkPad-L490:~/personal/Projects/wc-tool$ ./wc test.txt\n2  5  12   test.txt\n\n```\n\n```console\nabhisekhs@abhisekhs-ThinkPad-L490:~/personal/Projects/wc-tool$ ./wc -h\n\n        USAGE:  wc [OPTIONS] FILE(S)\n                -c      print the byte counts\n                -l      print the newline counts\n                -w      print the word counts  \n        EXAMPLE: \n                wc -l logs.txt\n                wc -w logs.txt\n                wc -l logs.txt logs2.txt\n          \n\nabhisekhs@abhisekhs-ThinkPad-L490:~/personal/Projects/wc-tool$ ./wc test.txt test2.txt test.txt -l -w\n 2  5 test.txt\n 6  8 test2.txt\n 2  5 test.txt\n```\n![wc-tool](https://github.com/abhi11210646/wc-tool/assets/16542492/a39a1ff9-40b5-4a06-a9be-32ee4a49d5be)\n\n```console\nabhisekhs@abhisekhs-ThinkPad-L490:~/personal/Projects/wc-tool$ ./wc -h\n\n        USAGE:  wc [OPTIONS] FILE(S)\n                -c      print the byte counts\n                -l      print the newline counts\n                -w      print the word counts  \n        EXAMPLE: \n                wc -l logs.txt\n                wc -w logs.txt\n                wc -l logs.txt logs2.txt\n          \n\nabhisekhs@abhisekhs-ThinkPad-L490:~/personal/Projects/wc-tool$ ./wc test.txt test2.txt test.txt -l -w\n 2  5 test.txt\n 6  8 test2.txt\n 2  5 test.txt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhi11210646%2Fwc-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhi11210646%2Fwc-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhi11210646%2Fwc-tool/lists"}