gsplitter

command module
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

README

gsplitter

Allows you to divide the files in the current folder into many small directories, separated by the number of files in one directory or by extension.

Example

By count of files:
$ ls -l
-rw-r--r-- 1 user users     0 Feb 14 18:21 0001.txt
-rw-r--r-- 1 user users     0 Feb 14 18:21 0002.txt
-rw-r--r-- 1 user users     0 Feb 14 18:21 0003.txt
-rw-r--r-- 1 user users     0 Feb 14 18:21 0004.txt
...
-rw-r--r-- 1 user users     0 Feb 14 18:21 1000.txt
$ gsplitter -count 200
2023/02/14 18:24:57 Done!
$ ls -l
drwxr-xr-x 2 user users 4.0K Feb 14 18:24 0/
drwxr-xr-x 2 user users 4.0K Feb 14 18:24 1/
drwxr-xr-x 2 user users 4.0K Feb 14 18:24 2/
drwxr-xr-x 2 user users 4.0K Feb 14 18:24 3/
drwxr-xr-x 2 user users 4.0K Feb 14 18:24 4/
By extension:
$ ls -l
-rw-r--r-- 1 user users     0 Feb 14 18:21 0001.txt
-rw-r--r-- 1 user users     0 Feb 14 18:21 0002.TXT
-rw-r--r-- 1 user users     0 Feb 14 18:21 0003.jpg
-rw-r--r-- 1 user users     0 Feb 14 18:21 0004.JPG
...
-rw-r--r-- 1 user users     0 Feb 14 18:21 1000
$ gsplitter -by_ext
2023/02/14 18:24:57 Done!
$ ls -l
drwxr-xr-x 2 user users 4.0K Feb 14 18:24 txt/
drwxr-xr-x 2 user users 4.0K Feb 14 18:24 jpg/
drwxr-xr-x 2 user users 4.0K Feb 14 18:24 unknown/

How to install

go install github.com/HardDie/gsplitter@latest

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL