AminetAminet
Search:
84799 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/batch/random-order.lha

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric icon
No screenshot available
Short:Reads lines from stdin and outputs them in random order. Source only.
Author: veijalai at cc.lut.fi
Uploader:veijalai cc lut fi
Type:util/batch
Architecture:generic
Date:1995-09-27
Download:util/batch/random-order.lha - View contents
Readme:util/batch/random-order.readme
Downloads:336

Util for randomizing order of lines of text.

Handles unlimited amount of lines. Line length is not limited.


On Linux, for example,

  ls *.jpg | random | head -n 3 | awk 'BEGIN {printf "zgv "} {printf $1}' >/tmp/xxx;sh /tmp/xxx

would show 3 random jpegs.


This tiny util should compile on most systems.
On Linux, "gcc -s -O2 -N random.c -o /usr/local/bin/random".
Only source is included (I don't have a C compiler for Amiga).


Contents of util/batch/random-order.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
-rw-r--r--     0/0         348     540  64.4% -lh5- f8b6 Sep 15  1995 README
-rw-r--r--     0/0         856    1787  47.9% -lh5- 670a Sep 15  1995 random.c
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         2 files    1204    2327  51.7%            Sep 26  1995
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>