From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?M=E1rio_Gamito?= Subject: Automatic CTRL-D (EOF) Date: Tue, 11 Mar 2008 13:07:54 +0000 Message-ID: <47D6842A.2@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Sender: linux-admin-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="iso-8859-1"; format="flowed" To: Linux-Admin ML Hi, I have a script that has to perform a hash over a password. Problem is that sha512sum expects CTRL-D to be pressed to return to the= =20 command prompt. I've searched all over Google, but either I didn't use the right search= =20 strings or there is nothing relevant about this. Bottom line is that I need this command to print the password hash and=20 returns to the shell automatically: $ sha512sum | xargs echo "password" | cut -f2 -d' ' Tried: $ read x; echo "$x" | sha512sum | xargs echo "password" | cut -f2 -d' = ' but no good and as a bonus (NOT) the hash is incorrect. Any help would be appreciated. Warm Regards, M=E1rio Gamito -- To unsubscribe from this list: send the line "unsubscribe linux-admin" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html