you are viewing a single comment's thread
view the rest of the comments
[–] 4 points 8 hours ago* (1 child)

Really completely different? Do they not print first / last lines of text from a file into the terminal?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 6 hours ago* (1 child)

    The way they do it is fundamentally different. Head just reads until number of newlines is the target number. Tail has to first read the entire file and keep a buffer of the file and/or offsets for each line ending to determine what the last 10 (or so) lines are.

    This idiot (Gabriel) probably thinks exclusively in the real world paper line analog.

    I also just looked at each program's command line options and they're identical. Less things only Tail can do (because they're fundamentally different operations)

  • source
  • parent
  • hideshow 2 child comments
  • [–] 4 points 5 hours ago* (1 child)

    This idiot (Gabriel) probably thinks exclusively in the real world paper line analog.

    Typical of Internet discourse to just immediately brand someone you disagree with an idiot... That "idiot" is one of the designers of common lisp, among other things. You're allowed to disagree with a smart person too you know

  • source
  • parent
  • hideshow 2 child comments