' \
| while read -r num total freq word; do
[ "$word" ] || continue
- F="$I/$word"
- L="$(STRING "$DOC")"
-
- if LOCK "$F"; then
- touch "$F"
- { while read d l f n t; do
- [ "$l" = "$L" ] \
- || printf "%i %s %f %i %i\n" \
- "$d" "$l" "$f" "$n" "$t"
- done <"$F"
- printf "%i %s %f %i %i\n" \
- "$_DATE" "$L" "$freq" "$num" "$total"
- } >"$F.$$"
- mv -- "$F.$$" "$F"
- RELEASE "$F"
- fi
+ printf "%i %s %f %i %i\n" \
+ "$_DATE" "$(STRING "$DOC")" \
+ "$freq" "$num" "$total" \
+ >>"$I/$word"
done