Команда grep говорит что это бинарный файл:
Код: Выделить всё
cat /var/log/portalauth.log | grep child
Binary file (standard input) matches
Код: Выделить всё
cat /var/log/portalauth.log
May 4 14:22:36 pfsense squid[20273]: Squid Parent: child process 20923 started
May 4 14:22:42 pfsense squid[54976]: Squid Parent: child process 55192 started
May 4 14:37:03 pfsense logportalauth[27757]: Voucher: All 15 vouchers from Roll 4 marked unused
Код: Выделить всё
#!/bin/sh
tail -f /var/log/portalauth.log >> /root/myportalauth.log
но "tail -f " не выводит строки на терминал. Почему не знаю.....