Unicode and Locale

From Noah.org
Revision as of 17:55, 22 September 2008 by Root (talk | contribs) (New page: Category:Engineering == Setting locale for just a single command == Many commands behave differently depending on the locale. For example, `grep` will interpret range expressions lik...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Setting locale for just a single command

Many commands behave differently depending on the locale. For example, `grep` will interpret range expressions like [a-z] differently depending on the locale. This can cause problems with regular expressions. Generally, most system administration scripts will prefer the C locale.

LANG=C grep 'Search Text' filename