{"id":26647333,"url":"https://github.com/pkgforge-security/cutlines","last_synced_at":"2025-03-24T23:51:45.390Z","repository":{"id":280921205,"uuid":"943616886","full_name":"pkgforge-security/cutlines","owner":"pkgforge-security","description":"Cut \u0026 Paste Lines (from|to) file without $TEMPFILE even if another process is writing to it [Maintainer=@Azathothas]","archived":false,"fork":false,"pushed_at":"2025-03-06T02:06:00.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T03:19:49.479Z","etag":null,"topics":[],"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/pkgforge-security.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":"2025-03-06T02:01:50.000Z","updated_at":"2025-03-06T02:06:04.000Z","dependencies_parsed_at":"2025-03-06T03:19:50.689Z","dependency_job_id":"8418449e-698b-4d1e-b5b2-14af339d10aa","html_url":"https://github.com/pkgforge-security/cutlines","commit_stats":null,"previous_names":["pkgforge-security/cutlines"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkgforge-security%2Fcutlines","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkgforge-security%2Fcutlines/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkgforge-security%2Fcutlines/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkgforge-security%2Fcutlines/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pkgforge-security","download_url":"https://codeload.github.com/pkgforge-security/cutlines/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245372354,"owners_count":20604490,"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":[],"created_at":"2025-03-24T23:51:44.842Z","updated_at":"2025-03-24T23:51:45.378Z","avatar_url":"https://github.com/pkgforge-security.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### ℹ️ About\nCut \u0026 Paste Lines (from|to) file without $TEMPFILE even if another process is writing to it. You can also probably use [pv](https://www.ivarch.com/programs/pv.shtml) to do the same more reliably.\n\n### 🖳 Installation\nUse [soar](https://github.com/pkgforge/soar) \u0026 Run:\n```bash\nsoar add 'cutlines#github.com.pkgforge-security.cutlines'\n```\n\n### 🧰 Usage\n```mathematica\n❯ cutlines --help\nCut \u0026 Paste Lines (from|to) file without $TEMPFILE even if another process is writing to it\n\nOptions:\n  -l, --lines int\n        Number (n) of lines to cut\n  -f, --file string\n        Input file to cut lines from\n  -o, --output string\n        Output file to paste cut lines (Use /dev/null if output is unneeded)\n  -p, --print\n        Print the lines that are cut to stdout\n  -q, --quiet\n        Quiet mode (Suppress Info \u0026 Stats)\n\n ~\u003e #Cut 100,000 lines from input.txt, paste it in output.txt\n  ❯ cutlines --lines 100000 --file input.txt --output output.txt\n\n ~\u003e #Same as above but be completely quiet\n  ❯ cutlines --lines 100000 --file input.txt --output output.txt --quiet\n\n ~\u003e #Same as above but be pipe friendly by printing lines to stdout\n  ❯ cutlines --lines 100000 --file input.txt --output /dev/null --print --quiet\n\n ~\u003e !! #By specifying a value for --lines larger than total lines of --file input.txt, you will completetly cut all lines from input.txt\n ~\u003e !! #Use tee | \u003e\u003e instead of -o | --output flags, as files WILL GET CORRUPTED if they are being written using os file locks.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkgforge-security%2Fcutlines","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkgforge-security%2Fcutlines","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkgforge-security%2Fcutlines/lists"}