diff options
author | cgd <cgd@NetBSD.org> | 1995-03-21 15:48:18 +0000 |
---|---|---|
committer | cgd <cgd@NetBSD.org> | 1995-03-21 15:48:18 +0000 |
commit | 4569c070f2bf0133ace14d1e5611848681d892d1 (patch) | |
tree | b449c8ecc55f796760bcca2ca407eb1a131b0483 /fortune/tools | |
parent | 5ff78ede5ea1a80c654d3f0684cd5f36d5253ae1 (diff) | |
download | bsdgames-darwin-4569c070f2bf0133ace14d1e5611848681d892d1.tar.gz bsdgames-darwin-4569c070f2bf0133ace14d1e5611848681d892d1.tar.zst bsdgames-darwin-4569c070f2bf0133ace14d1e5611848681d892d1.zip |
from Lite
Diffstat (limited to 'fortune/tools')
-rw-r--r-- | fortune/tools/Do_spell | 2 | ||||
-rw-r--r-- | fortune/tools/Do_troff | 2 | ||||
-rw-r--r-- | fortune/tools/do_sort | 11 |
3 files changed, 13 insertions, 2 deletions
diff --git a/fortune/tools/Do_spell b/fortune/tools/Do_spell index fdba4892..d997392e 100644 --- a/fortune/tools/Do_spell +++ b/fortune/tools/Do_spell @@ -1,6 +1,6 @@ #!/bin/sh - # -# @(#)Do_spell 5.2 (Berkeley) 4/8/91 +# @(#)Do_spell 8.1 (Berkeley) 5/31/93 # F=_spell.$$ diff --git a/fortune/tools/Do_troff b/fortune/tools/Do_troff index dc2000e3..52cb282b 100644 --- a/fortune/tools/Do_troff +++ b/fortune/tools/Do_troff @@ -1,6 +1,6 @@ #!/bin/csh -f # -# @(#)Do_troff 5.4 (Berkeley) 4/8/91 +# @(#)Do_troff 8.1 (Berkeley) 5/31/93 # set file=$1 diff --git a/fortune/tools/do_sort b/fortune/tools/do_sort new file mode 100644 index 00000000..b868a4c2 --- /dev/null +++ b/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' |