tldr/pages/osx/head.md
Parth Mehrotra 17a6fb99b3 Head args are supposed to be in bytes rather than KB
commit 32490f087fce93beadae3c59b10c1b8200734106
Author: Parth Mehrotra <parth.mehrotra.cs@gmail.com>
Date:   Sun Jan 3 23:09:09 2016 -0500

    replaced spaces with underscores

commit 51c680741e497aa891848e2008f55e5c316c18f0
Author: Parth Mehrotra <parth.mehrotra.cs@gmail.com>
Date:   Sat Jan 2 22:23:37 2016 -0500

    head args are supposed to be in bytes, rather thank KB

    commit 52e1aefe5bdcf05084222ec2c184bdd5ff96cc8e
    Author: Parth Mehrotra <parth.mehrotra.cs@gmail.com>
    Date:   Sat Jan 2 13:31:56 2016 -0500

        head args aren't in bytes
2016-01-03 23:11:03 -05:00

208 B

head

Output the first part of files

  • Output the first few lines of a file

head -n {{count_of_lines}} {{filename}}

  • Output the first few bytes of a file

head -c {{number_in_bytes}} {{filename}}