4 ms·
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
by alienchow 2y ago
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\('