# para-cada
*Para Cada* in Spanish means *For Each*. The tool executes your command for each file selected using glob expression(s).
Why? Let's say you have multiple `.tgz` archives and you would like to extract them in one shot. Some of the options available in bash are:
```sh
ls *.tgz | xargs -IT tar xzvf T
for T in *.tgz; do tar xzvf $T; done
find . -type f -name '*.tgz' -exec tar xzvf {} \;
```
All of them are relatively complex. This is where cada can help. Simply do:
```sh
cada 'tar xzvf *.tgz'
```
![](docs/assets/images/example.png)
Cada knows where glob expression is. It executes entire command with subsequent values corresponding to this expression. Additionally, user may transform/filter/sort those values using regular Python syntax. Take a look at the [documentation](https://gergelyk.github.io/para-cada/).
Raw data
{
"_id": null,
"home_page": "https://gergelyk.github.io/para-cada",
"name": "para-cada",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Grzegorz Krason",
"author_email": "grzegorz.krason@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/66/95/93217e2d332699c558d4a2381ca69d08b6196640a8418fae411cd666ea37/para_cada-1.9.0.tar.gz",
"platform": null,
"description": "# para-cada\n\n*Para Cada* in Spanish means *For Each*. The tool executes your command for each file selected using glob expression(s).\n\nWhy? Let's say you have multiple `.tgz` archives and you would like to extract them in one shot. Some of the options available in bash are:\n\n```sh\nls *.tgz | xargs -IT tar xzvf T\nfor T in *.tgz; do tar xzvf $T; done\nfind . -type f -name '*.tgz' -exec tar xzvf {} \\;\n```\n\nAll of them are relatively complex. This is where cada can help. Simply do:\n\n```sh\ncada 'tar xzvf *.tgz'\n```\n\n![](docs/assets/images/example.png)\n\nCada knows where glob expression is. It executes entire command with subsequent values corresponding to this expression. Additionally, user may transform/filter/sort those values using regular Python syntax. Take a look at the [documentation](https://gergelyk.github.io/para-cada/).\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Executes your command for each file selected using glob expression(s).",
"version": "1.9.0",
"project_urls": {
"Homepage": "https://gergelyk.github.io/para-cada",
"Repository": "https://github.com/gergelyk/para-cada"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4f48d4f0c5ce285faa3915ed91ae9ac566eb2d2aaf55365d0d47c4f52cfcc1ef",
"md5": "eb23ded9c776b47599396f649e626df7",
"sha256": "3619fd2c516bb72cee1aa804e9f927d868874589d32a195de93c6e835e72b180"
},
"downloads": -1,
"filename": "para_cada-1.9.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "eb23ded9c776b47599396f649e626df7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 8478,
"upload_time": "2024-01-14T23:26:17",
"upload_time_iso_8601": "2024-01-14T23:26:17.773641Z",
"url": "https://files.pythonhosted.org/packages/4f/48/d4f0c5ce285faa3915ed91ae9ac566eb2d2aaf55365d0d47c4f52cfcc1ef/para_cada-1.9.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "669593217e2d332699c558d4a2381ca69d08b6196640a8418fae411cd666ea37",
"md5": "ad4514130664c1901cdc67f3da17d4a6",
"sha256": "0eff8e52b88872caa1ba9cf1dae9ba4973734a2ce82a712375aaba8c711ef3fa"
},
"downloads": -1,
"filename": "para_cada-1.9.0.tar.gz",
"has_sig": false,
"md5_digest": "ad4514130664c1901cdc67f3da17d4a6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 7348,
"upload_time": "2024-01-14T23:26:19",
"upload_time_iso_8601": "2024-01-14T23:26:19.793956Z",
"url": "https://files.pythonhosted.org/packages/66/95/93217e2d332699c558d4a2381ca69d08b6196640a8418fae411cd666ea37/para_cada-1.9.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-14 23:26:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "gergelyk",
"github_project": "para-cada",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "para-cada"
}