Skip to main content

Executes your command for each file selected using glob expression(s).

Project description

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:

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:

cada 'tar xzvf *.tgz'

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

para_cada-1.9.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

para_cada-1.9.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file para_cada-1.9.0.tar.gz.

File metadata

  • Download URL: para_cada-1.9.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/5.15.0-91-generic

File hashes

Hashes for para_cada-1.9.0.tar.gz
Algorithm Hash digest
SHA256 0eff8e52b88872caa1ba9cf1dae9ba4973734a2ce82a712375aaba8c711ef3fa
MD5 ad4514130664c1901cdc67f3da17d4a6
BLAKE2b-256 669593217e2d332699c558d4a2381ca69d08b6196640a8418fae411cd666ea37

See more details on using hashes here.

File details

Details for the file para_cada-1.9.0-py3-none-any.whl.

File metadata

  • Download URL: para_cada-1.9.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/5.15.0-91-generic

File hashes

Hashes for para_cada-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3619fd2c516bb72cee1aa804e9f927d868874589d32a195de93c6e835e72b180
MD5 eb23ded9c776b47599396f649e626df7
BLAKE2b-256 4f48d4f0c5ce285faa3915ed91ae9ac566eb2d2aaf55365d0d47c4f52cfcc1ef

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page