cat

Aliases: 
  • type
  •  
    Parameters:
    Name Type Required Default Hint
    file1 string true File to output
    file2 string false File to concatenate to previous file
    file3 string false File to concatenate to previous file(s)
    file4 string false File to concatenate to previous file(s)

    Command Usage

    Read any number of files and return their concatenated contents. By default, the
    the output is displayed on the console, but it can also be piped or redirected.

    Output a single file

    cat box.json
    Concatenate two files and output them to the screen
    cat file1.txt file2.txt
    Concatenate two files and write them to one new file
    cat file1.txt file2.txt > combined.txt