jglowa commited on
Commit
32e5908
·
verified ·
1 Parent(s): cc371e9

Update indeksator.cmd

Browse files
Files changed (1) hide show
  1. 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
- :; mapfile -t words < <(tr -s '[:space:]' '\n' < "$file" | grep -v '^$')
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