Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
alienchow
6 months ago
|
parent
|
context
|
favorite
| on:
Greppability is an underrated code metric
I very rarely use literal grep at all. Perl grep is my standard goto.
For functions: grep -P '^func funcName\('
For methods: grep -P '^func [^)]+\) methodName\('
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
For functions: grep -P '^func funcName\('
For methods: grep -P '^func [^)]+\) methodName\('