Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antoinegagne/file-grouper
Groups files according to some predicates
https://github.com/antoinegagne/file-grouper
cli file-manager haskell
Last synced: 11 days ago
JSON representation
Groups files according to some predicates
- Host: GitHub
- URL: https://github.com/antoinegagne/file-grouper
- Owner: AntoineGagne
- License: other
- Created: 2017-08-30T21:10:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-01T21:38:12.000Z (over 7 years ago)
- Last Synced: 2024-10-24T23:29:39.748Z (about 2 months ago)
- Topics: cli, file-manager, haskell
- Language: Haskell
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# file-grouper
This program groups the files according to some predicates.
## Installation
To install this program, you can use `cabal` or `stack`. If you use `stack`, you can simply run the following command:
```sh
stack install
```### Autocompletion
You can enable autocompletion of this program by adding this line in your `.bashrc`:
```sh
eval "$(file-grouper --bash-completion-script file-grouper)"
```## Options
To view the full options, you can run the following command:
```sh
file-grouper --help
```which will display the following prompt:
```
file-grouper - Group your filesUsage: file-grouper [--type TYPE] [--pattern PATTERN] [--maxdepth DEPTH]
[--mindepth DEPTH] (--name | --last-accessed ([--year] |
[--month] | [--day] | [--custom PATTERN]) | --last-modified
([--year] | [--month] | [--day] | [--custom PATTERN]))
[-i|--input PATH] [-o|--output DESTINATION] [--version]
Group files in folders.Available options:
--type TYPE The filetype to match when searching for file. The
following types are available: b Block device c
Character device f Regular file l Symbolic link p
Named pipe s Socket
--pattern PATTERN The glob pattern to match when searching for files.
--maxdepth DEPTH The maximum depth to use when recursing.
--mindepth DEPTH The minimum depth to use when recursing.
--name Group the files by their names.
--last-accessed Group the files by the last time they were accessed.
--year Create year named folders.
--month Create month named folders.
--day Create day named folders.
--custom PATTERN Create custom named folders. To see the available
options, see the following page:
https://hackage.haskell.org/package/time-1.8.0.3/docs/Data-Time-Format.html
--last-modified Group the files by the last time they were modified.
--year Create year named folders.
--month Create month named folders.
--day Create day named folders.
--custom PATTERN Create custom named folders. To see the available
options, see the following page:
https://hackage.haskell.org/package/time-1.8.0.3/docs/Data-Time-Format.html
-i,--input PATH The folder that contains the files.
-o,--output DESTINATION The folder where to put the sorted files.
-h,--help Show this help text
--version Show program's version.
```