Handbuch-Beispiele als Test, search/seek mit Schlüsseltabelle
- doc/handbuch.txt: OCR-Text des COHERENT-/rdb-Handbuchs - demo/handbuch/ und test/handbuch_test.rb: Beispiele aus dem Lehrbuchteil, mise run test führt sie mit aus - search/seek: Schlüsselspalten aus dem Kopf der Schlüsseltabelle - gregorian -u ohne führende Null im Monat, mean ganzzahlig ohne .00 - Mit justify aufgefüllte Spaltennamen werden wieder gefunden - coherent.pdf in .gitignore
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
number fname lname rate
|
||||
------ ----- ----- ----
|
||||
1 John Wilson 75
|
||||
2 Fred Jackson 85
|
||||
3 Anne Rowan 75
|
||||
@@ -0,0 +1,8 @@
|
||||
number hours code
|
||||
------ ----- ----
|
||||
1 3 2
|
||||
1 4 2
|
||||
2 4 1
|
||||
2 5 2
|
||||
3 5 2
|
||||
3 6 1
|
||||
@@ -0,0 +1,9 @@
|
||||
Item Amount Cost Value Description
|
||||
---- ------ ---- ----- -----------
|
||||
1 3 50 150 rubber gloves
|
||||
2 100 5 500 test tubes
|
||||
3 5 80 400 clamps
|
||||
4 23 19 437 plates
|
||||
5 99 24 2376 cleaning cloth
|
||||
6 89 147 13083 bunsen burners
|
||||
7 5 175 875 scales
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
Number 1
|
||||
Name Ronald McDonald
|
||||
Company McDonald's
|
||||
Street 123 Mac Attack
|
||||
City Menphis
|
||||
State TENN
|
||||
ZIP 30000
|
||||
Phone (111) 222-3333
|
||||
@@ -0,0 +1,14 @@
|
||||
USAGE='usage: onhand Item < inventory'
|
||||
FOUND=0
|
||||
NOFOUND=1
|
||||
read HEAD
|
||||
read DASH
|
||||
while read $HEAD
|
||||
do
|
||||
if test "$Item" -eq "$1"
|
||||
then
|
||||
echo We have $Amount $Description on hand.
|
||||
exit $FOUND
|
||||
fi
|
||||
done
|
||||
exit $NOFOUND
|
||||
@@ -0,0 +1,4 @@
|
||||
number name
|
||||
------ ----
|
||||
1 unix/world
|
||||
2 \rdb
|
||||
Reference in New Issue
Block a user