12
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?
2Your first attempt probably did not work correctly because you were trying to execute
blue
as a command instead of echoing it. Tryecho blue | md5
instead. – Trey Hunner – 2010-05-12T08:28:53.293