Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gee -distribute doesnt evenly distribute #29

Closed
0xtavian opened this issue Jul 22, 2021 · 4 comments
Closed

gee -distribute doesnt evenly distribute #29

0xtavian opened this issue Jul 22, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@0xtavian
Copy link

@hahwul
I love gee. Im trying to work it more and more into axiom https://github.com/pry0cc/axiom.

take a file with x number of lines and distribute for example

seq 1 6 > file | gee -distribute 1 2 3

cat 1 | wc -l
3
cat 2 | wc -l
2
cat 3 | wc -l
1

Gee should instead distribute evenly, expected result:

cat 1 | wc -l
2
cat 2 | wc -l
2
cat 3 | wc -l
2
@0xtavian 0xtavian added the bug Something isn't working label Jul 22, 2021
@hahwul
Copy link
Owner

hahwul commented Jul 23, 2021

I'm on it 😎

@hahwul
Copy link
Owner

hahwul commented Jul 23, 2021

Test

$ seq 1 6 > file | gee -distribute 1 2 3
☁  ~  cat 1
1
4
5
☁  ~  cat 2
2
6
☁  ~  cat 3
3

if options.Distribute && (len(files) > 0) {

Fixed?

$ seq 1 6 > file | ./gee -distribute 1 2 3
1
2
3
4
5
6
☁  gee [main] ⚡  cat 1
1
4
☁  gee [main] ⚡  cat 2
2
5
☁  gee [main] ⚡  cat 3
3
6

hahwul added a commit that referenced this issue Jul 23, 2021
@hahwul
Copy link
Owner

hahwul commented Jul 23, 2021

Hi @0xtavian
I've just fixed this issue and it's being released.
I'll close the issue! If you have any problems after using it, please re-open :D

Update

from source

▶ GO111MODULE=on go get -v github.com/hahwul/gee

with homebrew

▶ brew upgrade gee

@hahwul hahwul closed this as completed Jul 23, 2021
@0xtavian
Copy link
Author

Before updating, you can see one has 2X more vs the rest
Screen Shot 2021-07-23 at 1 36 31 PM

After updating - WOOT! thank you <3
Screen Shot 2021-07-23 at 1 38 33 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants