Listen "'shuf' - generate random permutations - Video Man Pages"
Episode Synopsis
The 'shuf' command is used to generate random permutations. In other words, it "shuffles" lines of text or series of numbers.- Shuffle the order of lines in a file and output the result: shuf path/to/file- Only output the a certain "number" of entries in the result: shuf -n 10 path/to/file- Write the "output" to another file: shuf path/to/input_file -o path/to/output_file- Generate a random ordering of an "input" range 1-10: shuf -i 1-10- Generate a random odering of an "input" range 1-100 and out 1 entry: shuf -i 1-100 -n 1 NOTE Useful in situations where you want to randomize your actions based on percentages.- "Repeatedly" generate a random ordering of an "input" range of numbers 1-10: shuf -i 1-10 -r- Line delimiter is NULL rather than newline: shuf -i 0-9 -zREFERENCED:► https://gitlab.com/dwt1/vidmanWANT TO SUPPORT THE CHANNEL? 💰 Patreon: https://www.patreon.com/distrotube 💳 Paypal: https://www.youtube.com/redirect?event=channel_banner&redir_token=QUFFLUhqazNocEhiaGFBT1l1MnRHbnlIcHFKbXJWVnpQd3xBQ3Jtc0tsLVZJc19YeFlwZ2JqbXVOa3g0Skw4TVhTV2otNm1tM3A1bUNnamh3S2V6OGQtLTBnSjBxYTlvUXMxeEVIS3o4US10NENHMUQ3STk2a01FOFBhUnZjZFctMEhFUTg1TVctQmFfVUdxZXJ4TDl0azlYNA&q=https%3A%2F%2Fwww.paypal.com%2Fcgi-bin%2Fwebscr%3Fcmd%3D_donations%26business%3Dderek%2540distrotube%252ecom%26lc%3DUS%26item_name%3DDistroTube%26no_note%3D0%26currency_code%3DUSD%26bn%3DPP%252dDonationsBF%253abtn_donateCC_LG%252egif%253aNonHostedGuest🛍️ Amazon: https://amzn.to/2RotFFi👕 Teespring: https://teespring.com/stores/distrotubeDT ON THE WEB:🕸️ Website: http://distro.tube📁 GitLab: https://gitlab.com/dwt1 🗨️ Mastodon: https://fosstodon.org/@distrotube👫 Reddit: https://www.reddit.com/r/DistroTube/📽️ Odysee: https://odysee.com/@DistroTube:2FREE AND OPEN SOURCE SOFTWARE THAT I LIKE:🌐 Brave Browser - https://brave.com/📽️ Open Broadcaster Software: https://obsproject.com/🎬 Kdenlive: https://kdenlive.org🎨 GIMP: https://www.gimp.org/💻 VirtualBox: https://www.virtualbox.org/🗒️ Doom Emacs: https://github.com/hlissner/doom-emacsYour support is very much appreciated. Thanks, guys!...https://www.youtube.com/watch?v=ArquIrMD-0M
More episodes of the podcast DistroTube on Odysee
Open Source Apps So Good, I'd Pay For Them!
16/12/2025
Setting Up Virt-Manager On Linux
13/12/2025
Tweaking The Look Of The Qtile Panel
07/12/2025
I use CachyOS, btw!
27/11/2025
Cavalier Is An Audio Visualizer For Linux
24/11/2025
ZARZA We are Zarza, the prestigious firm behind major projects in information technology.