Posts Tagged ‘bash’

Recursive Grep

I didn’t even think about it until about 15 seconds after I pressed enter:

Bash [Show Styled Code]:

grep ‘call_user_func_array’ * > out.txt

Bash [Show Plain Code]:

grep ‘call_user_func_array’ * > out.txt

Sigh.

ANSI Color In Mac OS X 10.4

By default when connecting over SSH to my Mac OS X 10.4 box (using bash shell), there’s no ANSI color. Sometimes it’s pretty handy to have. I keep forgetting how to turn it on.
To add, put the following in the .profile file in your home directory:

Bash [Show Styled Code]:

TERM=xterm-color; export TERM

Bash [...]