Re: How to randomize a list?

2018-01-13 Thread Jean-Christophe Helary
shuf requires coreutils which is not in macOS by default. You can install it with homebrew. sort -R seems to be available in recent versions of macOS (the man page indicates a 2015 date). There is also a solution with Perl as given here:

Re: How to randomize a list?

2018-01-13 Thread Sam Hathaway
Make a text filter called Randomize with the contents: ``` #!/bin/sh exec shuf ``` Text filters go in ~/Library/Application Support/BBEdit/Text Filters. I think they probably have to be executable. Running these command in Terminal should do the trick: ``` cd ~/Library/Application\

How to randomize a list?

2018-01-13 Thread Vlad Ghitulescu
Hello! I have a list of difficult words / phrases for my son (see below) that I want to randomize in order to keep the boy awake :-) I've found similar (old!) questions: http://bbedit-talk.barebones.narkive.com/jXrdz0T6/randomize-lines

Re: Text filter question

2018-01-13 Thread Greg Raven
D’oh! I didn’t read down that far. Thanks, Fletcher! Sent from my iPhone > On Jan 13, 2018, at 8:13 AM, Fletcher Sandbeck wrote: > > It looks like JSHint requires a dash to indicate that it should read content > from standard input. Many CLI tools read from stdin by

Re: Text filter question

2018-01-13 Thread Fletcher Sandbeck
It looks like JSHint requires a dash to indicate that it should read content from standard input. Many CLI tools read from stdin by default when they don't see a file name specified, but others require - or another parameter to trigger this behavior. #!/bin/bash jshint -

Text filter question

2018-01-13 Thread Greg Raven
I have three text filters in my BBEdit Text Filters folder. Two work, but one doesn't. This works: #!/bin/bash csscomb assets/css This works: #!/bin/bash js-beautify This doesn't: #!/bin/bash jshint If I open the Terminal.app and navigate to a folder containing a JavaScript file, I can