Skip to content

taupiqueur/batch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

batch

batch is a tool for batch processing using your favorite text editor.

The command takes a list of items, lets you edit the list in your favorite text editor, then generates a shell script to batch process unchanged items, renamed items, and deleted items. You can edit the script to add your own logic for how to process each kind of item, and then run it.

By default, the batch utility reads a list of items from standard input and writes unchanged items, renamed items, and deleted items to standard output.

In addition to interactive use, you can supply shell script fragments to automate the editing and batch processing stages.

Features

  • Uses your favorite text editor for batch processing.
  • Customizable pick, map and drop actions.
  • Automate repetitive tasks with external filters—such as tr, sed or awk—before invoking the editor.
  • Lets you review inlined actions in your text editor before processing.

Installation

Nightly builds

Download the Nightly builds.

Build from source

Install Crystal with the shards command.

git clone https://github.com/taupiqueur/batch.git
cd batch
make install

Documentation

See the manual for setup and usage instructions.

batch is also documented via man pages. For a list of available man pages, refer to man -k batch or batch(1).

Contributing

Report bugs on the issue tracker, ask questions on the IRC channel, send patches on the mailing list.