Skip to content

Instantly share code, notes, and snippets.

View ke20's full-sized avatar
🐢
Kawabunga !

Kevin Auvinet ke20

🐢
Kawabunga !
View GitHub Profile
@ke20
ke20 / tail-color.sh
Last active May 8, 2017 19:20 — forked from kartikshah/tail-color.sh
Symfony 2 default logs
tail -100f /var/log/applications/application.log | awk '
/(request|app)\.INFO/ {print "\033[36m" $0 "\033[39m"}
/(request|app)\.WARNING/ {print "\033[33m" $0 "\033[39m"}
/(request|app)\.ERROR/ {print "\033[31m" $0 "\033[39m"}
/(request|app)\.CRITICAL/ {print "\033[31m" $0 "\033[39m"}
'

Bash (Readline)

Moving

ctrl + a                 Goto BEGINNING of command line
ctrl + e                 Goto END of command line
ctrl + b                 move back one character
ctrl + f                 move forward one character

alt + f move cursor FORWARD one word