jeudi 28 octobre 2021

How do I use gshuf to randomly shuffle files in a folder on mac os?

I am trying to randomly shuffle the files in a folder on my mac. I came across a suggestion to use gshuf (part of coreutils), but I don't know exactly what command to enter.

First I tried going into the folder and typing gshuf, and that didn't seem to do anything so I hit control-c to exit. Then I tried gshuf and the folder path, and I got an error:

gshuf /Users/xxx
gshuf: read error: Is a directory

Anyone know how to make it work?




Aucun commentaire:

Enregistrer un commentaire