mirror of
https://github.com/vattam/BSDGames.git
synced 2025-12-20 19:04:49 +00:00
Initial revision
git-svn-id: file:///srv/svn/joey/bsdgames-trunk@5086 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
12
fortune/tools/do_sort
Normal file
12
fortune/tools/do_sort
Normal file
@@ -0,0 +1,12 @@
|
||||
#! /bin/sh
|
||||
# $NetBSD: do_sort,v 1.2 1995/03/23 08:28:54 cgd Exp $
|
||||
#
|
||||
# @(#)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'
|
||||
Reference in New Issue
Block a user