forked from rogueforge/rogomatic14
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrplot
More file actions
executable file
·24 lines (22 loc) · 720 Bytes
/
rplot
File metadata and controls
executable file
·24 lines (22 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
#
# rplot: Rog-O-Matic XIV (CMU) Tue Feb 5 13:52:48 1985 - mlm
# Copyright (C) 1985 by A. Appel, G. Jacobson, L. Hamey, and M. Mauldin
#
# Bug fixes by: Landon Curt Noll (chongo was here) ^oo^
#
export RGMPLOT="rgmplot"
if [[ -x ./rgmplot ]]; then
RGMPLOT="./rgmplot"
fi
if [[ ! -x $RGMPLOT ]]; then
echo "$0: ERROR: rgmplot executable not found" 1>&2
exit 2
fi
colrm 48 |
sed -e 's/\<Jan\>/1/g' -e 's/\<Feb\>/2/g' -e 's/\<Mar\>/3/g' \
-e 's/\<Apr\>/4/g' -e 's/\<May\>/5/g' -e 's/\<Jun\>/6/g' \
-e 's/\<Jul\>/7/g' -e 's/\<Aug\>/8/g' -e 's/\<Sep\>/9/g' \
-e 's/\<Oct\>/10/g' -e 's/\<Nov\>/11/g' -e 's/\<Dec\>/12/g' |
LC_ALL=C sort -u +2n +0n +1n +4n +5 |
"$RGMPLOT" "$@"