about summary refs log tree commit diff
path: root/Functions/randline
blob: 7b06b798230fec49fed63a1b7eabcadf513a24f1 (plain) (blame)
1
2
3
# get a random line from a file
integer z="$(wc -l <$1)"
sed -n $[RANDOM%z+1]p $1