Previous | Next
sha1 checksum of file's lines - sha1 hash checksum read from file
bash-4.2$ while read line; do echo "$line" | sha1sum; done < numbers
The output looks like this:
7967d5acbf6582992926d0454361a56f2b756424 -
1df5df327c7da3fd59501dd982bc377420d926f9 -
e6f12f89913949f6e9f235bb20d4301c7d80f6ad -
c4b812e9e3b73434f70854b2511e4d6e29e6cb2c -
d232737440a38adac2c2775b4e0aca890ba3603b -
b0c4b16cc377b8f639a8970532f03a4d21190e24 -
e458d1baf46de6ba03d3bf72c11a849779420929 -
84acc6bdb7f9e7982133335c7160626d1819d67f -
c82369722d0c5ac9ed4e549259b8d6fdeaa0ea1c -
13e41d48e5b81890e684e1e4de4b6387faf7d3ab -The original file is:
bash-4.2$ cat numbers
12345575776
86765545332
12356454444476
1457676
930923808408098098502438242
3897394798739487498759875987983798
1423453576845
349685900024545
5487598349837984
1457596735960394569374698576985776