{"id":42187201,"url":"https://github.com/lfourky/file-splitter","last_synced_at":"2026-01-26T22:30:11.423Z","repository":{"id":59046477,"uuid":"85619043","full_name":"lfourky/file-splitter","owner":"lfourky","description":"A small Go utility application for splitting a large file (think gigabytes) into smaller ones.","archived":false,"fork":false,"pushed_at":"2020-07-26T17:16:03.000Z","size":9,"stargazers_count":10,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T11:46:45.356Z","etag":null,"topics":["file-split","file-splitter","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/lfourky.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}},"created_at":"2017-03-20T19:45:50.000Z","updated_at":"2024-04-24T23:56:01.000Z","dependencies_parsed_at":"2022-09-11T04:41:52.375Z","dependency_job_id":null,"html_url":"https://github.com/lfourky/file-splitter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lfourky/file-splitter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfourky%2Ffile-splitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfourky%2Ffile-splitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfourky%2Ffile-splitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfourky%2Ffile-splitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lfourky","download_url":"https://codeload.github.com/lfourky/file-splitter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfourky%2Ffile-splitter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28789745,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T21:49:50.245Z","status":"ssl_error","status_checked_at":"2026-01-26T21:48:29.455Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["file-split","file-splitter","go","golang"],"created_at":"2026-01-26T22:30:10.817Z","updated_at":"2026-01-26T22:30:11.404Z","avatar_url":"https://github.com/lfourky.png","language":"Go","readme":"# file-splitter\nA small Go utility application for splitting a large file (think gigabytes) into smaller ones.\n\n## Available flags\n```\n-b uint\n    Customize buffer size. (default 10000000)\n-d string\n    Provide a directory path where partial files will be stored (default \"parts\")\n-f string\n    Provide a relative path to file you wish to split.\n-l uint\n    Line limit per part-file. (default 10)\n-p string\n    Provide a prefix for each part. (default \"part_\")\n-s string\n    Provide a suffix for each part.\n-crlf bool\n    Use CRLF instead of LF for line endings.\n```\n\n## Running the program (example)\nLet's say you have a file ```bigfile.sql``` of, let's say, ```100gb``` in size. It contains queries you might want to execute, but there might be an error in one of the lines. \nYou try to open it in Notepad to see what's up, but the thing won't open. It won't load such a big file.\nDamn it! Happens every time, right? Well, how about splitting it into thousands (or more) (or less?) of files and examining each one of them?\n\nIn your particular case, this command will solve your 100th life problem, so you're left with just 99.\n\n```\ngo run main.go -f bigfile.sql\n```\n\nNow you see that a new folder ```parts``` is created in the directory where your ```bigfile.sql``` is.\nIt starts getting populated with files such as ```part_1.sql```, ```part_2.sql```, etc...\n\nCongratulations! Now you've got 99 problems but a ```bigfile.sql``` ain't one. \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfourky%2Ffile-splitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flfourky%2Ffile-splitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfourky%2Ffile-splitter/lists"}