blob: a92d02755ecb27a55bf95d0c6289473b1aa11072 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
#! /bin/sh
# 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 -dfu -T /var/tmp"
sed 's/^%$//' | tr '\12' '\3' | tr '\2' '\12' |
sed -e 's/^//' -e '/^$/d' -e 's/$/%/' |
$sp | tr '\3' '\12'
|