projects
/
unix-history
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
386BSD 0.1 development
[unix-history]
/
usr
/
othersrc
/
public
/
zsh-2.2
/
func
/
randline
Commit
Line
Data
dbf02a84
WJ
1
# get a random line from a file
2
integer z=$(wc -l <$1)
3
sed -n $[RANDOM%z+1]p $1