{"id":30668110,"url":"https://github.com/datumbrain/training-ut-util-bash","last_synced_at":"2026-02-13T14:59:51.670Z","repository":{"id":312564010,"uuid":"822440280","full_name":"datumbrain/training-ut-util-bash","owner":"datumbrain","description":"Utility (merger) implementation in bash.","archived":false,"fork":false,"pushed_at":"2024-07-02T19:05:54.000Z","size":10,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-14T10:10:39.982Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/datumbrain.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-01T06:52:30.000Z","updated_at":"2024-07-01T06:59:41.000Z","dependencies_parsed_at":"2025-08-31T16:04:22.639Z","dependency_job_id":"d49697c1-43af-4839-ae25-b4126d675d1e","html_url":"https://github.com/datumbrain/training-ut-util-bash","commit_stats":null,"previous_names":["datumbrain/training-ut-util-bash"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/datumbrain/training-ut-util-bash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datumbrain%2Ftraining-ut-util-bash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datumbrain%2Ftraining-ut-util-bash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datumbrain%2Ftraining-ut-util-bash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datumbrain%2Ftraining-ut-util-bash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datumbrain","download_url":"https://codeload.github.com/datumbrain/training-ut-util-bash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datumbrain%2Ftraining-ut-util-bash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29411138,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2025-08-31T23:09:16.766Z","updated_at":"2026-02-13T14:59:51.652Z","avatar_url":"https://github.com/datumbrain.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Utility\n\nThis repository contains a bash script that performs file merging operations. The script merges all JSONL files in a specified directory into a single JSONL file and stores it in an output directory. Additionally, if the `--format csv` flag is used, the output is a CSV file.\n\n## Task Description\n\n**Objective:** Create a bash script named `util.sh` that performs file merging operations. The script should merge all JSONL files in a specified directory into a single JSONL file and store it in an output directory. Additionally, if the `--format csv` flag is used, the output should be a CSV file.\n\n## Requirements\n\n1. **Script Arguments:**\n\n   - `--operation merge`: Specifies the operation to be performed.\n   - `--input-path ./\u003cany_path\u003e`: Path to the directory containing JSONL files to be merged.\n   - `--output-path ./\u003cany_path\u003e`: Path to the directory where the merged file will be stored.\n   - `--format csv`: (Optional) If provided, the output should be a CSV file instead of a JSONL file.\n\n2. **Functionality:**\n   - Read all JSONL files from the input directory.\n   - Merge the content of all JSONL files into a single JSONL file.\n   - If the `--format csv` flag is detected, convert the merged JSONL content to CSV format.\n   - Save the merged file (in JSONL or CSV format) to the specified output directory.\n\n## Example Commands\n\n1. Merge JSONL files into a single JSONL file:\n\n   ```bash\n   ./util.sh --operation merge --input-path ./data/jsonl_files/ --output-path ./output_data\n   ```\n\n2. Merge JSONL files and output as a CSV file:\n\n   ```bash\n   ./util.sh --operation merge --input-path ./data/jsonl_files/ --output-path ./output_data --format csv\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatumbrain%2Ftraining-ut-util-bash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatumbrain%2Ftraining-ut-util-bash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatumbrain%2Ftraining-ut-util-bash/lists"}