File: rem

package info (click to toggle)
remind 03.00.22-4sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,648 kB
  • ctags: 1,770
  • sloc: ansic: 14,300; sh: 4,789; perl: 315; makefile: 186; csh: 14
file content (45 lines) | stat: -rw-r--r-- 899 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh
#
# rem - by David Skoll - 26 February 1991
#
# $Id: rem,v 1.1 1998/01/15 02:50:21 dfs Exp $
#
# This script runs 'remind' with a default reminder file assumed.  You
# can override the default by using "rem -F newfile ..."  (But why would
# you use rem unless you wanted to accept the default??)

# ------ You may wish to change the defaults below this line ------

# The default reminder file
DEFAULT=$HOME/.reminders

# The executable file (you may wish to change this to /usr/local/bin/remind
# or whatever.
EXECUTABLE=remind

# No options yet
OPTIONS=""

# No parameters yet
PARAMETERS=""

# ------ You shouldn't change anything below this line -----

# Scan for options
while test "$1" != ""
do
	case $1 in

		-F) DEFAULT=$2
		    shift
		    shift ;;

		-*) OPTIONS="$OPTIONS $1"
		    shift ;;

		*) PARAMETERS=$*
		   break ;;
	esac
done

$EXECUTABLE $OPTIONS $DEFAULT $PARAMETERS