I am reading a CSV file that contains 1 column,
- 220657
- 202512
- 156736
Here is the code to read and generate hash,
#! /bin/bash
while IFS="," read -r rec_column1
do
echo "Displaying Record for-$rec_column1"
echo -n "$rec_column1" | sha256sum
echo ""
done < <(tail -n +1 users.csv)
The correct sha256 hash for 220657 a2983a41141e5197d3cf99732288d92e852027751c6a1e844d4dcdbf19549012
but generates this instead, 394170bd2537d3634697e00ce8de3d02464a4158a16aeb7b30b5acdb27d286b0
any idea why?