diff options
author | jkh <jkh@FreeBSD.org> | 1994-09-04 04:03:31 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-09-04 04:03:31 +0000 |
commit | 057afceb86e030ad65b0130436860d9a18066186 (patch) | |
tree | a0ced9c9b9278eb776d89cd2565c27ddcf020b51 /games/fortune/tools/do_sort | |
parent | eedec95276cdb8aef98e92c5371000f10b8d6ba7 (diff) | |
download | FreeBSD-src-057afceb86e030ad65b0130436860d9a18066186.zip FreeBSD-src-057afceb86e030ad65b0130436860d9a18066186.tar.gz |
Bring in the 4.4 Lite games directory, modulo man page changes and segregation
of the x11 based games. I'm not going to tag the originals with bsd_44_lite
and do this in two stages since it's just not worth it for this collection,
and I've got directory renames to deal with that way. Bleah.
Submitted by: jkh
Diffstat (limited to 'games/fortune/tools/do_sort')
-rw-r--r-- | games/fortune/tools/do_sort | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/games/fortune/tools/do_sort b/games/fortune/tools/do_sort new file mode 100644 index 0000000..b868a4c --- /dev/null +++ b/games/fortune/tools/do_sort @@ -0,0 +1,11 @@ +#! /bin/sh +# +# @(#)do_sort 8.1 (Berkeley) 5/31/93 +# +# an aggressive little script for sorting the fortune files +# depends on octal 02 and 03 not being anywhere in the files. + +sp="/usr/bin/sort -bdfu -T /var/tmp" + +sed 's/^%$//' | tr '\12' '\3' | tr '\2' '\12' | $sp | sed 'a\ + %' | sed -e 's/^//' -e 's/$//' | tr '\3' '\12' |