Indicating end of Standard Input

Posted by waiwai933 on Super User See other posts from Super User or by waiwai933
Published on 2010-05-12T04:31:42Z Indexed on 2010/05/12 4:34 UTC
Read the original article Hit count: 216

Filed under:
|

How does one indicate that one has finished entering test in stdin?

For example, let's say that I wish to encrypt 'blue' using MD5 (I know MD5 is unsecure, but just for this example). I tried

user$ blue | md5

which I was led to understand is how one pipes input to stdin, but it doesn't work right.

But if I just enter

user$ md5

I can enter the word 'blue'. But how do I indicate to md5 that I'm finished entering text?

© Super User or respective owner

Related posts about stdin

Related posts about terminal