arzzen 8 years ago
parent
commit
1751a67fdd
3 changed files with 11 additions and 8 deletions
  1. 4
    4
      README.md
  2. 3
    0
      pert
  3. 4
    4
      pert.sh

+ 4
- 4
README.md View File

9
 Comma separated task list in the form "1,2,12 4,5,9 2,3,6", where whitespace separates tasks.
9
 Comma separated task list in the form "1,2,12 4,5,9 2,3,6", where whitespace separates tasks.
10
 
10
 
11
 Usage:
11
 Usage:
12
-	pert [optimistic,realistic,pessimistic]
12
+	pert.sh [optimistic,realistic,pessimistic]
13
 
13
 
14
 Example:
14
 Example:
15
-	pert 1,3,4
16
-	pert 10,15,20 5,7,10
17
-	pert "1,2,3" "15,17,20"
15
+	pert.sh 1,3,4
16
+	pert.sh 10,15,20 5,7,10
17
+	pert.sh "1,2,3" "15,17,20"
18
 </pre>
18
 </pre>
19
 
19
 
20
 ### Example
20
 ### Example

+ 3
- 0
pert View File

1
+#!/bin/bash
2
+
3
+. pert.sh

+ 4
- 4
pert.sh View File

4
 if [ -z "$1" ] || [[ "$1" =~ [-]*(help|h) ]]; then
4
 if [ -z "$1" ] || [[ "$1" =~ [-]*(help|h) ]]; then
5
     echo -e "\nA command line PERT calculator for quick estimates."
5
     echo -e "\nA command line PERT calculator for quick estimates."
6
     echo -e "\nComma separated task list in the form \"1,2,12 4,5,9 2,3,6\", where whitespace separates tasks."
6
     echo -e "\nComma separated task list in the form \"1,2,12 4,5,9 2,3,6\", where whitespace separates tasks."
7
-    echo -e "\nUsage:\n\tpert [optimistic,realistic,pessimistic]\n"
7
+    echo -e "\nUsage:\n\tpert.sh [optimistic,realistic,pessimistic]\n"
8
     echo -e "Example:"
8
     echo -e "Example:"
9
-    echo -e "\tpert 1,3,4"
10
-    echo -e "\tpert 10,15,20 5,7,10"
11
-    echo -e "\tpert \"1,2,3\" \"15,17,20\"\n"
9
+    echo -e "\tpert.sh 1,3,4"
10
+    echo -e "\tpert.sh 10,15,20 5,7,10"
11
+    echo -e "\tpert.sh \"1,2,3\" \"15,17,20\"\n"
12
     exit 1
12
     exit 1
13
 fi
13
 fi
14
 
14
 

Loading…
Cancel
Save