13.13 The "Filename" -
If you put filenames on the command line, a typical UNIX command will
read those files.
With no filenames, the command will read its standard input.
How can you make the command read both files and standard input?
Some UNIX systems, and utilities such as
gawk
(
33.12
)
,
support a special name like
/dev/stdin
(
13.1
)
.
Some older UNIX commands, like
cat
(
25.2
)
and
diff
(
28.1
)
,
will accept a "filename" of
For instance, here's how to compare two files on different computers.
The
For more examples, see articles 9.11 and 13.7 . - |
|