The UNIX Operating System

TOP

UP


Ray Seyfarth

ORCA


Computer Science

COST

USM




cat - type files


  • cat = concatenate

  • cat file = print the file

  • cat file1 file2 = prints file1 followed by file2
    concatenates the two files

  • cat file* > all

  • cat /dev/null > new_file

  • > new_file

  • cat > new_file
    to enter the file from the keyboard
    end with ^D


University of Southern Mississippi
Ray.Seyfarth@usm.edu
Updated 15:45 Sep 13, 2006