I have file like:
aaa
bbb
ccc
ddd
eee
And I want to do a script in BASH which can takes random line of this text file, and return it to me as variable or something.
I hear it can be done with some AWK. Any ideas?
UPDATE: I now using this:
shuf -n 1 text.txt
Thanks you all for help!