'cat <' and just 'cat'


#1

In exercise 5, doing cat < lakes.txt and doing cat lakes.txt do the same thing.

am I missing something here, or are they meant to do the same thing?


"cat < file.txt" or "cat file.txt"?
#2

From the man page:

NAME
       cat - concatenate files and print on the standard output

SYNOPSIS
       cat [OPTION]... [FILE]...

DESCRIPTION
       Concatenate FILE(s) to standard output.

       With no FILE, or when FILE is -, read standard input.

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.