Код: Выделить всё
tail -f /var/log/messages
Код: Выделить всё
#!/bin/bash
d1m1=$(date +%Y.%m.%d_%H-%M-%S)
cat /var/log/messages | grep "Connect time" > /var/log/ppp.${d1m1}.log
less /var/log/ppp.${d1m1}.log
Код: Выделить всё
tail -f /var/log/messages
Код: Выделить всё
#!/bin/bash
d1m1=$(date +%Y.%m.%d_%H-%M-%S)
cat /var/log/messages | grep "Connect time" > /var/log/ppp.${d1m1}.log
less /var/log/ppp.${d1m1}.log