tools/llvm: Do not build with symbols
[minix3.git] / games / fortune / tools / do_sort
blobddae1ace5df6624cb05fe8b58048462c07c56165
1 #! /bin/sh
2 # $NetBSD: do_sort,v 1.2 1995/03/23 08:28:54 cgd Exp $
4 # @(#)do_sort 8.1 (Berkeley) 5/31/93
6 # an aggressive little script for sorting the fortune files
7 # depends on octal 02 and 03 not being anywhere in the files.
9 sp="/usr/bin/sort -bdfu -T /var/tmp"
11 sed 's/^%$/\x02/' | tr '\12' '\3' | tr '\2' '\12' | $sp | sed 'a\
12 %' | sed -e 's/^\x03//' -e 's/\x03$//' | tr '\3' '\12'