[TUHS] redirection wildness in v7
chet.ramey at case.edu
Fri Nov 10 01:30:24 AEST 2017
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 at case.edu http://cnswww.cns.cwru.edu/~chet/
More information about the TUHS