[Quote]

    Orochi
  • 14100
  • Longevity: 4 years 9 months
  • Posts: 215
  • REPUTATION:0

    [+] [-]
Как я не старался, так и не смог осуществить то что мне надо.
Есть пару консольных утилит, которые находят текст и заменяют его.
Например, FART, fr, rxperl и ssr.
Одну строку я могу заменить, а вот больше не выходит.
Задача такая.
Найти:
<formatOptions FormatID="7z" Level="9" Dictionary="67108864" Order="64" BlockSize="32" NumThreads="4" Method="LZMA2" Options="" EncryptionMethod="" />
        <formatOptions FormatID="BROTLI" Level="5" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="bzip2" Level="5" Dictionary="921600" Order="4294967295" BlockSize="4294967295" NumThreads="4" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="LZ5" Level="5" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="lzip" Level="9" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
и заменить на:
<formatOptions FormatID="Asar" Level="9" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="BinHex" Level="9" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="BROTLI" Level="9" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="bzip2" Level="9" Dictionary="921600" Order="4294967295" BlockSize="4294967295" NumThreads="4" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="Grit" Level="9" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="gzip" Level="9" Dictionary="4294967295" Order="128" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="LIZARD" Level="9" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="LZ4" Level="9" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="LZ5" Level="9" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="lzip" Level="9" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="MacBinary" Level="9" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="mime" Level="9" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="tar" Level="4294967295" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="uue" Level="9" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="wim" Level="4294967295" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="xxe" Level="9" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="xz" Level="9" Dictionary="67108864" Order="64" BlockSize="28" NumThreads="4" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="YEnc" Level="9" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
        <formatOptions FormatID="zip" Level="9" Dictionary="4294967295" Order="128" BlockSize="4294967295" NumThreads="4" Method="Deflate" Options="" EncryptionMethod="" />
        <formatOptions FormatID="ZSTD" Level="9" Dictionary="4294967295" Order="4294967295" BlockSize="4294967295" NumThreads="4294967295" Method="" Options="" EncryptionMethod="" />
PS: Можно закрывать топик. Без регулярных выражений не обошлось ai


Display posts:    

Current time is: 12-Apr 03:22

All times are UTC + 3


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum