Article 56ZVC How do I achieve below results in single iteration?

How do I achieve below results in single iteration?

by
blason
from LinuxQuestions.org on (#56ZVC)
Hi Folks,

I have hash files comprises of MD5/SHA1/sha256 hashes. Now would like to segregate in single iteration and I am clueless here how to achive that.

Probably running 3 iterations for MD5; then SHA1 would help but then I'll have to rerun the file 3 times which I wanted to avoid.

I was thinking with while read loop but bi cluess here.

here is my file for example
Quote:
6cc9625971accf65e2cf2c03ebf47260939a39f50a7e12d0ed31b4b2f59aaba6
6ccd25b1b194da5e637f35db48bf2d4c44adad1af31162e02b02ffff087b27dd
7B55EDB28DEE19EB0CDAFBF7A306F9153DE00900
81B523E430B9968631D5453A4625FDE9
A3729FB27CAE5EF165BD04E879979DEB478B53EEA29D343D5165FA14CBF16ADF
My regex are

Quote:
cat t | grep -E '\b([a-z0-9A-Z]{32})\b'
cat t | grep -E '\b([a-z0-9A-Z]{64})\b'
cat t | grep -E '\b([a-z0-9A-Z]{40})\b'
latest?d=yIl2AUoC8zA latest?i=F0anbf2M-uY:27ap14yI0YM:F7zBnMy latest?i=F0anbf2M-uY:27ap14yI0YM:V_sGLiP latest?d=qj6IDK7rITs latest?i=F0anbf2M-uY:27ap14yI0YM:gIN9vFwF0anbf2M-uY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments