On 11/9/17 9:34 AM, Will Senn wrote:
Why does the first of these incantations not present
text, but the second
does (word is a file)? Neither errors out.
$ <word | sed 20q
A null command consisting of only a redirection (effectively a no-op).
$ <word sed 20q
Equivalent to 'sed 20q < word', which has the obvious meaning.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet(a)case.edu
http://cnswww.cns.cwru.edu/~chet/