about summary refs log tree commit diff
path: root/Functions/Misc/randline
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:27:15 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:27:15 +0000
commit440abd8aea3eaa9e0a89dda2fd603c76fbf3b289 (patch)
tree6571c20a8cd7f42cdcfc42ee57de36aca364083c /Functions/Misc/randline
parent6937dcd394e74163c3651a88b79d35c65cc935e1 (diff)
downloadzsh-440abd8aea3eaa9e0a89dda2fd603c76fbf3b289.tar.gz
zsh-440abd8aea3eaa9e0a89dda2fd603c76fbf3b289.tar.xz
zsh-440abd8aea3eaa9e0a89dda2fd603c76fbf3b289.zip
moved to ./Functions/Example/randline
Diffstat (limited to 'Functions/Misc/randline')
-rwxr-xr-xFunctions/Misc/randline3
1 files changed, 0 insertions, 3 deletions
diff --git a/Functions/Misc/randline b/Functions/Misc/randline
deleted file mode 100755
index 7b06b7982..000000000
--- a/Functions/Misc/randline
+++ /dev/null
@@ -1,3 +0,0 @@
-# get a random line from a file
-integer z="$(wc -l <$1)"
-sed -n $[RANDOM%z+1]p $1