index
:
mirror/zsh
this commit
#CVSPS.NO.BRANCH
5.9
declarednull
dot-zsh-3.1.5-pws-14
dot-zsh-3.1.5-pws-17
dot-zsh-3.1.5-pws-19
fork_early
interrupt_abort
job_control_debug
job_control_debug2
master
mikachu/badarrays
mikachu/redrawhook
schaefer/badarrays
typeset-array
zsh
zsh-3.1.5-pws-16-patches
zsh-4.0-patches
zsh-4.2-patches
zsh-5.8-patches
mirror of git://git.code.sf.net/p/zsh/code
Leah Neukirchen
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
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