[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Enhancement Requests: Add a seed value option to sort and shuf
From: |
Eric Blake |
Subject: |
Re: Enhancement Requests: Add a seed value option to sort and shuf |
Date: |
Wed, 20 Nov 2013 11:03:19 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
On 11/20/2013 10:29 AM, Thomas Müller wrote:
> Hi,
>
> I would appreciate if sort (and shuf) had an option to specify a seed
> value that could be set during random sort in order to always get the
> same permutation of an input file.
Already present. See sort --random-source=/path/to/file where
/path/to/file contains the seed. Similarly for shuf
--random-source=/path/to/file.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature