GIT.Harvie.CZ
/
mirrors
/
Programs.git
/ blame_incremental
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(non-incremental) |
history
|
HEAD
Added README to Goertzel
[mirrors/Programs.git]
/
misc
/
gbook
/
rand.sh
This page requires JavaScript to run. Use
this page
instead.
... / ...
Commit
Line
Data
1
#!/bin/bash
2
3
getline() {
4
head -n "$1" | tail -n 1;
5
}
6
7
randline() {
8
while read line; do echo $((len+=1)) >/dev/null; echo "$line"; done;
9
echo "$(( ($RANDOM % $len) + 1 ))" >&2;
10
}
11
12
13
ls | randline
This page took
0.477296 seconds
and
4
git commands to generate.