Difference between revisions of "Bash"
From Blue-IT.org Wiki
(→Environment) |
|||
Line 6: | Line 6: | ||
export LC_TYPE="en_US.UTF-8" | export LC_TYPE="en_US.UTF-8" | ||
export LANGUAGE="en_US.UTF-8 | export LANGUAGE="en_US.UTF-8 | ||
− | |||
− | |||
− | |||
− | |||
== Grep and Tail == | == Grep and Tail == | ||
Line 16: | Line 12: | ||
* Source: http://stackoverflow.com/questions/7161821/how-to-grep-a-continuous-stream | * Source: http://stackoverflow.com/questions/7161821/how-to-grep-a-continuous-stream | ||
+ | |||
+ | |||
+ | |||
+ | [[Category:Network]] | ||
+ | [[Category:Bash]] |
Revision as of 13:10, 7 January 2014
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" export LANGUAGE="en_US.UTF-8
Grep and Tail
tail -f -n 300 /var/log/syslog | stdbuf -o0 grep PATTERN