Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

hak3.sh

Marc R. Schoolderman edited this page Sep 5, 2018 · 3 revisions

Usage

hak3.sh [ta_1] [ta_2] ... [ta_N]

hak3.sh is called from verdeel.sh, and so will likely never need to run it yourself directly.

Description

When given N arguments, this script randomly sorts all subdirectories (of the current working directory) into N equally large piles (as far as possible), and moves them into folders (in the current working directory) with names corresponding to the arguments. E.g.

$ ls -F
s1/ s2/  s3/  s4/  s5/  s6/
$ ~/bb-scripts/hak3.sh hugin munin
$ find
.
./munin
./munin/s3
./munin/s1
./hugin
./hugin/s2
./hugin/s4
./hugin/s5
Clone this wiki locally