Hamilton LaboratoriesHamilton C shell 2012User guideExternal utilities

head

Oregon Coast

head
Previous | Next

        Copy the First Few Lines or Bytes of a File to Stdout

Usage:  head [-hcnq<size>-] [-t<tabs>][ file1 file2 ... ]

   head copies the first part of each of the files you specify
   onto stdout.  If several files are given, each is announced
   unless you specify quiet mode.  You may specify how much to
   read from each file in either lines or bytes.  If no files
   are given, head reads from stdin.

Options:

   -h         Help.  (This screen.)
   -c         Count characters.  (Default is lines.)
   -q         Quiet mode.  Don't announce the name of each file
              as it's read.
   -<size>    Amount to be read from each file.  (Default is 10
              lines or 512 bytes.)
   -t<tabs>   Tab settings to use for viewing text.  (Default is
              to use value given by the TABS environment variable
              or, if  that's undefined, to do no tab expansion.)
   -n         No tab expansion.
   --         End of options.

Previous | Next