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