• fool
    link
    fedilink
    arrow-up
    5
    ·
    8 hours 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
      ·
      6 hours ago

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