https://github.com/rubyworks/cdexec
Change and execute in each directory
https://github.com/rubyworks/cdexec
Last synced: 11 months ago
JSON representation
Change and execute in each directory
- Host: GitHub
- URL: https://github.com/rubyworks/cdexec
- Owner: rubyworks
- License: other
- Created: 2011-08-28T17:15:51.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-11-11T22:26:07.000Z (over 14 years ago)
- Last Synced: 2025-03-08T08:04:56.584Z (12 months ago)
- Language: Ruby
- Homepage: http://rubyworks.github.com/cdexec
- Size: 159 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- Changelog: HISTORY.rdoc
- License: COPYING.rdoc
Awesome Lists containing this project
README
= CdExec
{Homepage}[http://rubyworks.github.com/cdexec] |
{Development}[http://github.com/rubyworks/cdexec] |
{Support}[http://github.com/rubyworks/cdexec/issues]
== Description
Execute command from within a selection of directories.
== Usage
A dash (`-`) is used to separate the directory selection
from the command to be executed.
For example, to list all files in all subdirectories:
$ cdexec * - ls -1
The `*` selects all the subdirectories. The `ls -1` command following the `-`
is run within each directory, resulting in a complete list of files.
More interesting result when used with source control systems, e.g.
$ cdexec * - reap
== Copying
(BSD-2-Clause)
Copyright (c) 2011 Thomas Sawyer, Rubyworks
See COPYING.rdoc for details.