hono4kami ( hono4kami@piefed.social ) to Programming@programming.devEnglish · 1 year agoGreppability is an underrated code metricmorizbuesing.comexternal-linkmessage-square24fedilinkarrow-up189
arrow-up189external-linkGreppability is an underrated code metricmorizbuesing.comhono4kami ( hono4kami@piefed.social ) to Programming@programming.devEnglish · 1 year agomessage-square24fedilink
minus-squarethingsiplay ( thingsiplay@beehaw.org ) linkfedilinkarrow-up1·1 year agoFor code bases where this is a thing, you could use greps context lines: grep ---before-context 1 "^main"
minus-squareMadhuGururajan ( MadhuGururajan@programming.dev ) linkfedilinkEnglisharrow-up1·1 year agogrep -B should be more concise
For code bases where this is a thing, you could use greps context lines:
grep ---before-context 1 "^main"grep -B should be more concise