/data/log-www# cat /etc/passwd | cut -b-5 | head -5
root:
daemo
bin:x
sys:x
sync:
/data/log-www# cat /etc/passwd | cut -f1 -d ":" | head -5
root
daemon
bin
sys
sync
/data/log-www# tail -f log | cut -f1 -d ‘:‘
DEBUG, 1556197147, 2019-04-25 20
INFO, 1556197147, 2019-04-25 20
INFO, 1556202192, 2019-04-25 22
DEBUG, 1556202192, 2019-04-25 22
DEBUG, 1556202192, 2019-04-25 22
DEBUG, 1556202192, 2019-04-25 22
DEBUG, 1556202192, 2019-04-25 22
DEBUG, 1556202192, 2019-04-25 22
DEBUG, 1556202192, 2019-04-25 22
INFO, 1556202193, 2019-04-25 22
原文:https://blog.51cto.com/5890945/2393072