В этом случае используйте оболочку для итерации
find . -name "*0.01*txt" | while IFS= read -r filename; do
newname=$(awk '{split($1,a,"/"), print a[3]"_"a[4]"_"a[5]}' <<< "$filename")"
cp "$filename" "$newname"
done
В целом xargs полезен:
find .... -print0 | xargs -o -I FILE someCommand arg1 FILE arg3 FILE
Для отображения статистики сжатия можно использовать команду pppstats -z
. Если он отображает все нули, то сжатие не включено.
выдержка из справочной страницы
-z Instead of the standard display, show statistics indicating the
performance of the packet compression algorithm in use.
When the -z option is specified, instead displays the following fields,
relating to the packet compression algorithm currently in use. If
packet compression is not in use, these fields will all display zeroes.
The fields displayed on the input side are:
COMPRESSED BYTE
The number of bytes of compressed packets received.
COMPRESSED PACK
The number of compressed packets received.
INCOMPRESSIBLE BYTE
The number of bytes of incompressible packets (that is, those
which were transmitted in uncompressed form) received.
INCOMPRESSIBLE PACK
The number of incompressible packets received.
COMP RATIO
The recent compression ratio for incoming packets, defined as
the uncompressed size divided by the compressed size (including
both compressible and incompressible packets).
The fields displayed on the output side are:
COMPRESSED BYTE
The number of bytes of compressed packets transmitted.
COMPRESSED PACK
The number of compressed packets transmitted.
INCOMPRESSIBLE BYTE
The number of bytes of incompressible packets transmitted (that
is, those which were transmitted in uncompressed form).
INCOMPRESSIBLE PACK
The number of incompressible packets transmitted.
COMP RATIO
The recent compression ratio for outgoing packets.
Проверьте /etc/ppp/options
.
НЕ редактируйте этот файл, лучше скопируйте его в какое-нибудь место и отредактируйте.
проверьте это:
# Disable Address/Control compression negotiation (use default, i.e.
# address/control field disabled).
#-ac
Больше информации вы можете найти здесь в PPP-HOWTO.