mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-18 21:14:11 +01:00
moved from ./Functions/Misc/randline
This commit is contained in:
parent
440abd8aea
commit
80793a66dc
3
Functions/Example/randline
Normal file
3
Functions/Example/randline
Normal file
@ -0,0 +1,3 @@
|
||||
# get a random line from a file
|
||||
integer z="$(wc -l <$1)"
|
||||
sed -n $[RANDOM%z+1]p $1
|
Loading…
Reference in New Issue
Block a user