On 15 Jan 2018, at 0:46, Vlad Ghitulescu wrote:

(sorry for the following dumb questions… I've used Linux last time in 1993! :-)
What are the GNU Coreutils good for?

Should I install them too? (I've read about the difference in the performance of the various randomizer solutions in the previous cited StackOverflow-threads)
And if so, how?

They provide roughly the same functionality as the standard UNIX utilities that come with macOS. (Which come from a BSD lineage.) I like them because I used Linux for years and get tripped up by the differences in the command-line interfaces. If you don’t have this problem, then I don’t think there’s a good reason to install the GNU versions.

The Perl solution should be fine for your purposes. It will randomize correctly (unlike `sort -R`, which actually sorts by an arbitrary, but not random, characteristic of the data), and performance should be acceptable.

That worked even whitout making the file Randomize.sh executable with chmod +x Randomize!
Take a look:

Vlads27iMac2012:Text Filters Vlad$ ls -al
total 48
drwxr-xr-x@  5 Vlad  staff  170 14 Jan 21:17 .
drwxr-xr-x@ 17 Vlad  staff  578 15 Jan 06:44 ..
-rwxr-xr-x@ 1 Vlad staff 111 1 Nov 2016 Delete_Viewed_Video_in_Lynda_TOC.pl
-rwxr--r--@  1 Vlad  staff   69 15 Jan 06:32 Randomize.sh
-rwxr-xr-x@ 1 Vlad staff 80 4 Nov 2015 Selection_To_Numbered_List.sh

How is this possible?

See the `x` in column 4? That indicates that `Randomize.sh` is in fact executable, _by the owner_ (you). BBEdit also runs as you, so it can execute the script just fine.

Just a note: BBEdit doesn’t care, but to avoid future human confusion you might want to change `Randomize.sh` to `Randomize.pl` since it’s a Perl script now.
-sam

--
This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to