mix(1)
– randomly sort inputs
#55
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From
shuf(1)
:I think this should work like
rpn(1)
and take standard input if there are no arguments, so no need for-e
. No need of course for--version
and--help
. I don’t think-r
or-n
belong here. I’m not sure about having analogues--random-source
and-i
.And
-o
is redundant with redirection.Maybe
shuffle
?Then you could do stuff like
for f in /media/audio/*; do scrut -f "$f" && out "$f"; done | shuffle | xargs mpv
.I agree with
-e
being unnecessary and file arguments not being taken (justmm -i f -i f2 | shuffle
), no-i
(usesed
) or-n
(usesed
) or-o
(| mm -o
).-z
seems useful to me but with-0
, though its use here makes me think ASV would be a better fit. I'm gonna talk about--random-source
in #8.-r
seems useful to me but necessitates-n
to make sure it doesn't repeat forever. Maybe we should have a repeat(1) command to take standard input and spit it out repeated n times.How is
mix(1)
for a name?I like it.
GNU `shuf(1)` analogueto `mix(1)` – randomly sort inputs