项目作者: hutsoninc

项目描述 :
Move files to corresponding directories given a range.
高级语言: JavaScript
项目地址: git://github.com/hutsoninc/move-to-range-cli.git
创建时间: 2018-11-08T16:30:49Z
项目社区:https://github.com/hutsoninc/move-to-range-cli

开源协议:MIT License

下载


move-to-range-cli

Current npm package version

Move files to corresponding directories given a range.

Installation

npm install --global move-to-range-cli

Usage

  1. $ move-to-range --help
  2. Move files to a range of directories.
  3. Usage
  4. $ move-to-range <int>-<int> <file-type>
  5. Options
  6. --destination, -d Destination for dirs
  7. Example
  8. $ move-to-range 1-5,7,9-10 .txt
  1. $ tree
  2. .
  3. ├── 1.txt
  4. ├── 2.txt
  5. ├── 3.txt
  6. ├── 5.txt
  7. ├── 1
  8. ├── 2
  9. ├── 3
  10. ├── 5
  11. ...
  12. $ move-to-range 1-3,5 .txt
  13. # tree
  14. .
  15. ├── 1
  16. └── 1.txt
  17. ├── 2
  18. └── 2.txt
  19. ├── 3
  20. └── 3.txt
  21. ├── 5
  22. └── 5.txt
  23. ...

With options:

  1. $ tree
  2. .
  3. ├── 1.txt
  4. ├── 2.txt
  5. ├── 3.txt
  6. ├── 5.txt
  7. ├── out
  8. ├── 1
  9. ├── 2
  10. ├── 3
  11. └── 5
  12. ...
  13. $ move-to-range 1-3,5 .txt --destination out
  14. $ tree
  15. .
  16. ├── out
  17. ├── 1
  18. └── 1.txt
  19. ├── 2
  20. └── 2.txt
  21. ├── 3
  22. └── 3.txt
  23. └── 5
  24. └── 5.txt
  25. ...

Command Line/Shell Alias

Windows

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

UNIX

  1. alias mdr=make-dir-range

Authors

  • Austin Gordon - Development - GitHub

License

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