Update indeksator.cmd
Browse files- indeksator.cmd +1 -1
indeksator.cmd
CHANGED
|
@@ -24,7 +24,7 @@
|
|
| 24 |
:; for file in $inputDir/*.txt $inputDir/*.md; do
|
| 25 |
:; filename=$(basename "$file")
|
| 26 |
:; echo "Przetwarzanie $filename..."
|
| 27 |
-
:;
|
| 28 |
:; totalWords=${#words[@]}
|
| 29 |
:; start=0
|
| 30 |
:; while ((start < totalWords)); do
|
|
|
|
| 24 |
:; for file in $inputDir/*.txt $inputDir/*.md; do
|
| 25 |
:; filename=$(basename "$file")
|
| 26 |
:; echo "Przetwarzanie $filename..."
|
| 27 |
+
:; IFS=$'\n' read -rd '' -a words < <(tr -s '[:space:]' '\n' '.' < "$file" | grep -v '^$' && printf '\0')
|
| 28 |
:; totalWords=${#words[@]}
|
| 29 |
:; start=0
|
| 30 |
:; while ((start < totalWords)); do
|