#!/bin/bashwhile IFS= read -r line; do read sum _ < <(printf '%s\n' "$line" | md5sum -) printf '%s\t%s\n' "$line" "$sum"done < <(printf '%s\n' \ $'hello world' \ $'hello world\t' \ $'hello world\t\t' \ 'goodbye world')
Standard input is empty
hello world 6f5902ac237024bdd0c176cb93063dc4 hello world 80f923bcf643af27adfc202b696899fc hello world 8a5df873884617d210ec019455abc3e4 goodbye world f54a1fca2d39a6861ed89c203cbabe53
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!