Я полагаю, вы хотите проанализировать лог-файл с большим количеством строк? Используя манипуляции с подстроками -:
$ cat get2texts.sh
:
#!/bin/bash
logfile="$1"
IFS=']'
while read -r one two three four five junk; do
one="${one#[}"
one="${one% *}"
five="${five/*,/ | }"
echo "$one $five"
done < "$logfile" \
| tr -s ' ' ' '
Результат:
$ get2texts.sh testfile
23/08/2019 09:30:00 | duraci???n: 90
Не использовать тип архива сплошной при создании архивов:
A solid archive is a RAR archive packed by a special compression method, which treats all files, within the archive, as one continuous data stream.
(...)
But it also has a few important disadvantages:
- slower updating of existing solid archives
- to extract a single file from a solid archive all preceding files must be analyzed. This makes extraction from the middle of a solid archive slower than extraction from a normal archive, but, if all files are to be extracted from a solid archive, the extraction speed will not be affected.
(...)