From owner-freebsd-questions@freebsd.org Sun Jun 6 21:40:13 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 706D063EA51 for ; Sun, 6 Jun 2021 21:40:13 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fyqfh50nwz4bsJ for ; Sun, 6 Jun 2021 21:40:12 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: by mail-pg1-x530.google.com with SMTP id y11so4184364pgp.11 for ; Sun, 06 Jun 2021 14:40:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wP7/W42+eim4XsT6jB4uvGPAer3WAhnHzmm5KZMctlw=; b=MN8KyjGilcSu7pBs/JXyVNSvoYMIqEBY2/wnvtdyUjMAExKTAnt6B5Onw9dG+FEwcL Uf4SBOL1irwp5HxAKbXa5KdmFQ97vZRp1nqXr0lWItp6J/yRa8v83aI6flKqFmOiWdew xXHzj7KMt8l8s/z/DsWIqo0YIaw/bjKL7Fxnxwx8t8dKzaKBpsd7bzhnTG4ZlLl6NxUW EtXcswgRT9ZLXWQc9aWGeQ1/gWU1oI0OUytljGrIi/B2PFlEGm/xJLj9mrU3flhArzix p5gXR/OH5mwnizah+jp2agK5QSS1brXAcr6C/4pyIe9JYy+uUkD7PAd8xtGD6qClfyxG byoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wP7/W42+eim4XsT6jB4uvGPAer3WAhnHzmm5KZMctlw=; b=geXmGF2N6ieiE3/uYU2g+75PFeA5dUywixsAZg8hAMopndkFsdbMTsw7VjYD0+XjYM /ulDcfAGG8kL/i8h8KfvMNgY0MNVnbKKpU7ydLKANEhl81Cp+I/KUBThH3dVVo2akRlg dnXW9LEybDirLAIHwbf2n+BWmO5lK8ECBdDSKZoeu1QZlzwX0kuGQCCmqYVdJztLZjp0 Ym50veZCj/BvfwybEKdVg2nOPizLqdMTn8xM5DTZYDMswxxt30iNk/mTHsLOS6YE2gpY q0KjOiKifbPYet8mPwb/88As9LznDTYxEerqsOdnniIuv5w4IgfoDLMZp97wAdu3AaM3 ND6Q== X-Gm-Message-State: AOAM5311DP3ufVbLKEIoPKhlDmvkrK/oGU8pJnPB2P7zgP7k0JBK5NjQ wmeOMm97URLYRZ3sMDI28vX+SdwDD+HNeYnaOYh6WBf1bKzx X-Google-Smtp-Source: ABdhPJzMMbkNyNZTeYxTAO2GoB5BLnYCe6ZfvOMnNCiynyTuoMrQf+IPtZyosG2bRQFaX3I1TeZ8PMagKY6JkEFdNgE= X-Received: by 2002:aa7:9912:0:b029:2e9:c61d:2f27 with SMTP id z18-20020aa799120000b02902e9c61d2f27mr14771581pff.60.1623015610883; Sun, 06 Jun 2021 14:40:10 -0700 (PDT) MIME-Version: 1.0 References: <64616.1623015438@segfault.tristatelogic.com> In-Reply-To: <64616.1623015438@segfault.tristatelogic.com> From: Paul Procacci Date: Sun, 6 Jun 2021 17:39:59 -0400 Message-ID: Subject: Re: Location of shuf(1) and shuffle(1) ? To: "Ronald F. Guilmette" Cc: FreeBSD Questions X-Rspamd-Queue-Id: 4Fyqfh50nwz4bsJ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=MN8KyjGi; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of pprocacci@gmail.com designates 2607:f8b0:4864:20::530 as permitted sender) smtp.mailfrom=pprocacci@gmail.com X-Spamd-Result: default: False [-2.98 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.98)[-0.978]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::530:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::530:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::530:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jun 2021 21:40:13 -0000 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 On Sun, Jun 6, 2021 at 5:37 PM Ronald F. Guilmette wrote: > 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. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > -- __________________ :(){ :|:& };: