Skip to content

rubyworks/cdexec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CdExec

Homepage | Development | Support

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 © 2011 Thomas Sawyer, Rubyworks

See COPYING.rdoc for details.

About

Change and execute in each directory

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages