The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - General (http://hintsforums.macworld.com/forumdisplay.php?f=16)
-   -   grep command not found ! (http://hintsforums.macworld.com/showthread.php?t=99636)

hayne 03-18-2009 12:26 PM

Quote:

Originally Posted by horacioemilio (Post 524665)
now i realize about everything

for some reason, when i type at the terminal

ps -ef |*grep something

there is some kind of hidden asterisk there

but if i delete that space between the pipe and grep and add one or two spaces, then the problem is gone

ok, i dont understand anything, but i chekced it out on different machines and the problem is gone, who cares about the reason

I would care about the reason - something is going wrong.

One thing I don't understand - when you say:
Quote:

when i type at the terminal

ps -ef |*grep something
what keys are you pressing on the keyboard? Specifically, what keys are you pressing after you type the 'f' of "ps -ef" ?
It looks like you are typing a space and then a vertical bar (|) and then an asterisk and then a 'g'.
Are you typing something after the vertical bar before you type the 'g' ?

Or maybe (most likely) the problem is with the vertical bar itself.
What key are you pressing to get the vertical bar?
What type of keyboard do you have on your Mac?
Is the vertical bar on the key at the right-side just above the Return key?
What model of Mac do you have?
What language is set for keyboard input?

Papillon 10-18-2011 06:22 AM

Even though this post is very old. It helped me by giving the hint with the hidden asterisk.

This hidden character is triggered when the <alt>-key is not released before pressing the <space>-key. The german keyboard layout uses the <alt>-key to enter a pipe.

<space> != <alt><space>

Maybe its a Problem with the Keyboard Layout.


All times are GMT -5. The time now is 05:31 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.