On 20 August 2013 11:50, Ero Emma <[email protected]> wrote:
> date -u +%V`uname`|sha256sum|sed 's/\W//g'
"date -u +%V`uname`" outputs the week number followed by the "name" of the
operating system, so in my case "34Linux".
"sha256" hashes it, outputting
"0f0c825decc188c8e3a719a11e2d281bc343613275e83d4ed3b923c6536dbf37 -".
The "sed 's/\W//g'" command shaves off the file name field. Alternatives
would be "awk '{print $1}'" or "cut -f1 -d' '". Final output is
"0f0c825decc188c8e3a719a11e2d281bc343613275e83d4ed3b923c6536dbf37"
Why do you ask?
_______________________________________________
The Uganda Linux User Group: http://linux.or.ug
Send messages to this mailing list by addressing e-mails to: [email protected]
Mailing list archives: http://www.mail-archive.com/[email protected]/
Mailing list settings: http://kym.net/mailman/listinfo/lug
To unsubscribe: http://kym.net/mailman/options/lug
The Uganda LUG mailing list is generously hosted by INFOCOM:
http://www.infocom.co.ug/
The above comments and data are owned by whoever posted them (including
attachments if any). The mailing list host is not responsible for them in any
way.