diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-04-15 18:07:38 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-04-15 18:07:38 +0000 |
commit | f13624e0f8a3c28c90aa0ce8ee36b639a491e4a9 (patch) | |
tree | 7ebc57c7b2ceed481e23f598011dc88d159c9178 /Functions/randline | |
parent | a61dc2074ae6cd00f1c166dc0102c491db056060 (diff) | |
download | zsh-f13624e0f8a3c28c90aa0ce8ee36b639a491e4a9.tar.gz zsh-f13624e0f8a3c28c90aa0ce8ee36b639a491e4a9.tar.xz zsh-f13624e0f8a3c28c90aa0ce8ee36b639a491e4a9.zip |
zsh-3.1.5-pws-2 zsh-3.1.5-pws-2
Diffstat (limited to 'Functions/randline')
-rwxr-xr-x | Functions/randline | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/randline b/Functions/randline index 9af714fa2..7b06b7982 100755 --- a/Functions/randline +++ b/Functions/randline @@ -1,3 +1,3 @@ # get a random line from a file -integer z=$(wc -l <$1) +integer z="$(wc -l <$1)" sed -n $[RANDOM%z+1]p $1 |