Add 1995/esde/try.sh + format/typo fixes

This commit is contained in:
Cody Boone Ferguson committed 2023-11-10 12:40:50 -08:00
1 parent a939807600
commit 056b0681fa
3 files changed
+24 -7

No files matched your search

+5 -7
View File
@@ -17,9 +17,7 @@ where data-file contains lines of < 255 chars in length.
### Try:
```sh
./esde esde.data Johanson
./esde esde.data2 read
./esde README.md date
./try.sh
```
@@ -45,10 +43,10 @@ Soundex code begins with the first letter of the word followed by a
three-digit code. This is the algorithm:
0. Every letter in the word beyond the first letter is replaced by a digit.
1. Replace all pairs of the same code by single code (ex. R011235 -> R01235).
2. Remove all 0-codes (ex. R01235 -> R1235).
3. If length of code is > 4, get only first 4 codes (ex. R1235 -> R123).
4. If length of code is < 4, add zeros (ex. T12 -> T120).
1. Replace all pairs of the same code by single code (e.g. `R011235` -> `R01235`).
2. Remove all zeroes (e.g. `R01235` -> `R1235`).
3. If length of code is > 4, get only first 4 characters (e.g. `R1235` -> `R123`).
4. If length of code is < 4, add zeros (e.g. `T12` -> `T120`).
These are the codes:
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
make all >/dev/null || exit 1
echo "$ ./esde esde.data Johanson"
./esde esde.data Johanson
echo
echo "$ ./esde esde.data2 read"
./esde esde.data2 read
echo
echo "$ ./esde README.md date"
./esde README.md date
+5
View File
@@ -1865,6 +1865,11 @@ Cody added the [try.sh](1995/dodsond1/try.sh) script that uses the text file he
provided which is input we suggested one try with the entry.
## [1995/esde](1995/esde/esde.c) ([README.md](1995/esde/README.md]))
Cody added the [try.sh](1995/esde/try.sh) script.
## [1995/garry](1995/garry/garry.c) ([README.md](1995/garry/README.md]))
Cody fixed the alt code so that it will compile with modern compilers. The