1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00

moved to ./Functions/Example/randline

This commit is contained in:
Sven Wischnowsky 2001-04-02 12:27:15 +00:00
parent 6937dcd394
commit 440abd8aea

View file

@ -1,3 +0,0 @@
# get a random line from a file
integer z="$(wc -l <$1)"
sed -n $[RANDOM%z+1]p $1