Discussion:
Location of shuf(1) and shuffle(1) ?
Ronald F. Guilmette
2021-06-06 21:37:18 UTC
Permalink
Can anyone tell me where/how I can get these two command line utilities
onto my 12.2-RELEASE system?

shuf(1)
shuffle(1)

I found man pages for both on the FreeBSD web site (see links below),
but neither one appears to have been installed as part of the base
system. I have scrounged around in the ports tree and the only thing
I found which was even close (but stuff different) was the (GNU)
sysutils/coreutils port/package which would install "gshuf", which
is apparently the GNU-specific version of shuf(1).

What I'm actually looking for is the shuf(1) and shuffle(1) command
line utilities that are documented (with man pages) on the FreeBSD
web site. (The former seems to have possibly/probably come from
OpenBSD, while the latter seems to have possibly/probably come from
NetBSD.)

https://www.freebsd.org/cgi/man.cgi?query=shuf&apropos=0&sektion=0&manpath=FreeBSD+12.2-RELEASE+and+Ports&arch=default&format=html

https://www.freebsd.org/cgi/man.cgi?query=shuffle&apropos=0&sektion=0&manpath=FreeBSD+12.2-RELEASE+and+Ports&arch=default&format=html


NOTE: I really do want to get the non-GNU versions because I want to do
some benchmarking of these utilities.
Paul Procacci
2021-06-06 21:39:59 UTC
Permalink
Not sure about non-GNU versions if that's even a thing, but both shuf and
shuffle are available via pkg.

# pkg search shuf
p5-Algorithm-Numerical-Shuffle-2009110301_1 Shuffle a list
shuf-1.8 Randomly permute input lines
shuffle-20010603 Produce random permutations
shuffle-db-1.0.r1_1 IPod shuffle database builder


pkg install shuf
or
pkg install shuffle

~Paul
Post by Ronald F. Guilmette
Can anyone tell me where/how I can get these two command line utilities
onto my 12.2-RELEASE system?
shuf(1)
shuffle(1)
I found man pages for both on the FreeBSD web site (see links below),
but neither one appears to have been installed as part of the base
system. I have scrounged around in the ports tree and the only thing
I found which was even close (but stuff different) was the (GNU)
sysutils/coreutils port/package which would install "gshuf", which
is apparently the GNU-specific version of shuf(1).
What I'm actually looking for is the shuf(1) and shuffle(1) command
line utilities that are documented (with man pages) on the FreeBSD
web site. (The former seems to have possibly/probably come from
OpenBSD, while the latter seems to have possibly/probably come from
NetBSD.)
https://www.freebsd.org/cgi/man.cgi?query=shuf&apropos=0&sektion=0&manpath=FreeBSD+12.2-RELEASE+and+Ports&arch=default&format=html
https://www.freebsd.org/cgi/man.cgi?query=shuffle&apropos=0&sektion=0&manpath=FreeBSD+12.2-RELEASE+and+Ports&arch=default&format=html
NOTE: I really do want to get the non-GNU versions because I want to do
some benchmarking of these utilities.
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "
--
__________________

:(){ :|:& };:
Ronald F. Guilmette
2021-06-06 21:54:07 UTC
Permalink
Not sure about non-GNU versions if that's even a thing...
It is, apparently. Look at the AUTHORS sections of teh relevant man pages.
... but both shuf and shuffle are available via pkg.
...
pkg install shuf
or
pkg install shuffle
Oops! Yes. My bad. I obviously didn't scrounge around in the ports
tree well enough to find these.

Sorry. Color me embarrassed.

Anyway, thanks.
Kevin P. Neal
2021-06-07 00:16:04 UTC
Permalink
Post by Ronald F. Guilmette
Not sure about non-GNU versions if that's even a thing...
It is, apparently. Look at the AUTHORS sections of teh relevant man pages.
... but both shuf and shuffle are available via pkg.
...
pkg install shuf
or
pkg install shuffle
Oops! Yes. My bad. I obviously didn't scrounge around in the ports
tree well enough to find these.
I always have locate configured on my system. It makes, for example,
looking for stuff in the ports tree easier. Like: "locate shuffle"

I do have a little bit of configuration in /etc/locate.rc to eliminate
unnecessary hits.
--
Kevin P. Neal http://www.pobox.com/~kpn/

"A pig's gotta fly." - Crimson Pig
Loading...