From f13624e0f8a3c28c90aa0ce8ee36b639a491e4a9 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 15 Apr 1999 18:07:38 +0000 Subject: zsh-3.1.5-pws-2 --- Functions/randline | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Functions/randline') 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 -- cgit 1.4.1