Bash

From Blue-IT.org Wiki

Revision as of 12:17, 7 January 2014 by Apos (talk | contribs)

Environment

Put this in front of any script to avoid problems when running the script in other languages! The en_US locale should be avaiabel on all systems:

export LC_MESSAGES="en_US@.UTF-8"
export LC_TYPE="en_US.UTF-8"


Grep and Tail

tail -f -n 300 /var/log/syslog | stdbuf -o0 grep PATTERN