golang-exercises/array-sorter/gen-numbers.sh

6 lines
142 B
Bash
Raw Normal View History

#!/bin/bash
echo {1..300} > ./numbers.txt
cat ./numbers.txt | tr ' ' "\\n" | shuf | tr "\\n" ' ' > ./random.txt
go run . $(cat ./random.txt)