• fool
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    1 month ago

    Greppability also contributed to this thingy

    int
    main()
    {
      // dam
    }
    

    in Mozilla C-style and GNU C-style projects. Of course, it’s a remnant of the past (grep ^main), but kgmgaehgka.

    • thingsiplay@beehaw.org
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      For code bases where this is a thing, you could use greps context lines: grep ---before-context 1 "^main"