make-dir-range-cli

1.0.4 • Public • Published

make-dir-range-cli

Current npm package version

Make directories from ranges of integers.

Installation

npm install --global make-dir-range-cli

Usage

$ make-dir-range --help

  Make directories from ranges of integers.

  Usage
    $ make-dir-range <int>-<int>
  Options
       --destination, -d  Destination for dirs
       --prepend, -p  Prepend to dir name
       --append, -a  Append to dir name
  Example
    $ make-dir-range 1-50,55-60
$ make-dir-range 1-3,5,9-10

$ tree
.
├── 1
├── 2
├── 3
├── 5
├── 9
├── 10
│ ...

With options:

$ make-dir-range 11-13,15 --destination out --append a --prepend p

$ tree
.
├── out
│   ├── p11a
│   ├── p12a
│   ├── p13a
│   └── p15a
│ ...

Command Line/Shell Alias

Windows

Follow the instructions on this Stack Overflow answer to set up an alias on Windows.

UNIX

alias mdr=make-dir-range

Related

Authors

  • Austin Gordon - Development - GitHub

License

This project is licensed under the MIT License - see the LICENSE file for details

Package Sidebar

Install

npm i make-dir-range-cli

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

4.68 kB

Total Files

4

Last publish

Collaborators

  • austinleegordon