Grep command! No sense here!
The problem is, I can't count on grep command working on OS X. Let me explain what happens with an example:
Last login: Fri Feb 11 17:33:41 on ttys000
macbook:~ nicolunacba$ ls | grep <--- Okay, the command exists (1)
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
macbook:~ nicolunacba$ ls | grep dada <---- Why it doesn't exist now? (2)
-bash: grep: command not found
macbook:~ nicolunacba$ ls | grep <---- But it existed in (1), why not now?! (3)
-bash: grep: command not found
What's happening? I am sick of using VMs with Ubuntu when I should do the same in OS X. I work everyday with Bash scripts.
Thanks.
MacBook White 13'' - Late 2007 - 2 GB Ram, Mac OS X (10.6.4), iMac G3 400 Mhz (using Mac OS 9)