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

6 lines
142 B
Bash
Executable File

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