boot - Add EFI support for placing /boot in a disklabel's 'a' partition.
[dragonfly.git] / games / fortune / tools / do_sort
blobb868a4c22b323ffb99b61063368eebb242c7cf2d
1 #! /bin/sh
3 # @(#)do_sort 8.1 (Berkeley) 5/31/93
5 # an aggressive little script for sorting the fortune files
6 # depends on octal 02 and 03 not being anywhere in the files.
8 sp="/usr/bin/sort -bdfu -T /var/tmp"
10 sed 's/^%$/\x02/' | tr '\12' '\3' | tr '\2' '\12' | $sp | sed 'a\
11 %' | sed -e 's/^\x03//' -e 's/\x03$//' | tr '\3' '\12'