{"id":17823328,"url":"https://github.com/purarue/exists","last_synced_at":"2026-02-02T07:35:00.549Z","repository":{"id":94610123,"uuid":"259039572","full_name":"purarue/exists","owner":"purarue","description":"pipe to test if files exist","archived":false,"fork":false,"pushed_at":"2024-10-24T23:14:23.000Z","size":30,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T10:44:37.388Z","etag":null,"topics":["cli","file","pipes"],"latest_commit_sha":null,"homepage":"","language":"C","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/purarue.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-04-26T13:37:46.000Z","updated_at":"2024-10-24T23:14:26.000Z","dependencies_parsed_at":"2024-10-26T19:32:17.039Z","dependency_job_id":null,"html_url":"https://github.com/purarue/exists","commit_stats":null,"previous_names":["purarue/exists","seanbreckenridge/exists"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fexists","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fexists/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fexists/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fexists/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purarue","download_url":"https://codeload.github.com/purarue/exists/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243940058,"owners_count":20372044,"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":["cli","file","pipes"],"created_at":"2024-10-27T17:57:28.251Z","updated_at":"2026-02-02T07:35:00.491Z","avatar_url":"https://github.com/purarue.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# exists\n\nGot tired of doing `xargs -I {} sh -c \"[ -e \\\"{}\\\" ] \u0026\u0026 echo \\\"{}\\\"\"` to check if a files exist while trying to script things.\n\nThis receives paths from standard input, and prints any that exist; Works for files, directories and links.\n\n### Install\n\n```\ngit clone https://github.com/purarue/exists\ncd exists\nmake install\n```\n\n### Usage\n\n```\nUsage:\texists [-v] [-h]\nRead filepaths from STDIN, prints ones that exist to STDOUT\n\n  -h\t\tshow list of command-line options\n  -v\t\tinverts output, prints filenames that don't exist\n```\n\n### Example\n\n```shell\n$ ls\nexists  exists.1  exists.c  LICENSE  Makefile  README.md\n$ { ls -1; echo 'non_existent_file' } | exists\nexists\nexists.1\nexists.c\nLICENSE\nMakefile\nREADME.md\n{ ls -1; echo 'non_existent_file' } | exists -v  # print files that don't exist\nnon_existent_file\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurarue%2Fexists","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurarue%2Fexists","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurarue%2Fexists/lists"}