Удаление определенного файла.rar из составного списка без автоматического повторения по списку

Я полагаю, вы хотите проанализировать лог-файл с большим количеством строк? Используя манипуляции с подстроками -:

$ 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

0
04.10.2021, 17:37
1 ответ

Не использовать тип архива сплошной при создании архивов:

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.
    (...)

источник:
http://acritum.com/software/manuals/winrar/

0
04.10.2021, 22:17

Теги

Похожие вопросы