Tagged Questions
4
votes
3answers
793 views
Grep_color on mac
I am trying to get my regex highlighted on mac using terminal. I have put this is my .profile:
export GREP_COLOR='1;30;40'
Nothing changes, so I added the same to my bash.profile still nothing, ...
0
votes
2answers
154 views
why does grep -A n give more lines than n?
I am verifying UID/GID for certain users using the dscacheutil command. Using grep with -A flag gives me what I need but the number of lines doesn't make sense. Output below:
Edit8:~ edit08$ ...
0
votes
0answers
116 views
Bug in grep, possibly Mac specific? (braces governing parenthesized expressions containing brackets) [closed]
Consider the grep pattern \\([a][b]\\)\\{2\\}. This should match string "abab", no? But on my Mac (MacBook Pro, 10.6.8, GNU grep 2.5.1 copyright 2001) it does not. On other machines it does match even ...
5
votes
1answer
398 views
How can I search/browse in some process's memory?
I'm using MacOS X 10.7 and I'm not very familiar with unix. Is there a command for a search in some process's memory for a string?
1
vote
3answers
452 views
Help with a find command
I have a bunch of directories. Inside these directories is a cover letter and a zip archive of work. I wanted to run a quick and easy query to open up all the cover letters so I can decide if it's ...
9
votes
6answers
5k views
pgrep and pkill alternatives on mac os x?
Are there alternatives to pgrep and pkill commands on Mac OS X or should I just create aliases for them using other commands available for me?