[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: why is grep behaving this way ?



> Yes,
> 
>  There are lots of alternatives
>  like :
>  who | grep `id -un`
>  who | grep bhasker
>  or even i tried to do this !!!
>  who > a
>  grep `logname` a
>  that WORKS !!!!
>  ONLY this command "who | grep `logname`" does not work !
>  WHY ?
> 

Here's another workaround:

NAME=`logname`;who|grep $NAME




Reply to: