Monday, December 28, 2009

I do Trust Machines than hu~man ALIAS "Power of | xargs grep"

I do trust Machines than Human.. Here is an example..

One Day I got a call from my senior asking me the path of Checkpoint license file in IPSO. I was sure that in centralized licensing, it takes the smart center server's IP address..

So its sure that that file will contain my smart center server's IP address....:)) but how to search inside a file.... Its just like searching ur girl's mind :-(( quite difficult.. But I stick to the theory... "Nothing is Impossible".. Yea.. xargs will do that..

So the command would be

find . -name "*.*" | xargs grep ipaddress


But I stick to the other theory.. So I do Trust Machines than human

ahhh.. One more..
netstat -an | grep -i 127.0.0.1 is similar to netstat -an | find "127.0.0.1"

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.