From 80793a66dc8b4060034323acb08ba80a8038a77b Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 2 Apr 2001 12:27:23 +0000 Subject: moved from ./Functions/Misc/randline --- Functions/Example/randline | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Functions/Example/randline (limited to 'Functions/Example') diff --git a/Functions/Example/randline b/Functions/Example/randline new file mode 100644 index 000000000..7b06b7982 --- /dev/null +++ b/Functions/Example/randline @@ -0,0 +1,3 @@ +# get a random line from a file +integer z="$(wc -l <$1)" +sed -n $[RANDOM%z+1]p $1 -- cgit 1.4.1