Hi Shawn,

shawn wilson wrote:
Is there a way to have a command that does not show up in history? Or a way to pipe a string where the string doesn't show up in history?

Ie, I set some passwords with:
echo "some string and stuff" ¦ sha512sum
(Probably with cut and awk and other such things)

And I'd like a way for my system to not store my password scheme. I'd prefer something better than editing my history file.

Something like this will work:

#  echo |sha512sum  <<EOF
> $(echo fred smith was here|awk '{print $2,$4}')
> EOF
b01bd5351f6490469ea718d4ccc64eea7f0f6fcab25d34136ec24043872b11606c857f0550960be512d262921b466271e563644bb42688d5ed6477f1292826c6 -


#  echo |sha512sum  <<EOF
> $(echo fred smith was a hero once upon a time|tr 'aeiout' '@310U7')
> EOF
1bc9a23b486bba1a259ca9162d87c0a8ae415c91e05fedcbb5e8da47a9fd741418389ebd8e2fad2a1d89f630c003067c7424dc3389de29399c77e18674548331 -



Testing it works as expected (the sha512sum value that is) ...

#  echo smith here|sha512sum
b01bd5351f6490469ea718d4ccc64eea7f0f6fcab25d34136ec24043872b11606c857f0550960be512d262921b466271e563644bb42688d5ed6477f1292826c6 -

#  echo fr3d sm17h w@s @ h3r0 0nc3 Up0n @ 71m3|sha512sum
1bc9a23b486bba1a259ca9162d87c0a8ae415c91e05fedcbb5e8da47a9fd741418389ebd8e2fad2a1d89f630c003067c7424dc3389de29399c77e18674548331 -




With the EOF exampls, "history" only stores the first line. This is different to using line continuation.

--
Kind Regards
AndrewM

Andrew McGlashan
Broadband Solutions now including VoIP


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4db99742.2010...@affinityvision.com.au

Reply via email to