Search Results

Search: Posts Made By: FreddyG
12,951
Posted By FreddyG
YUP, that got it! Thanks so much for your help...
YUP, that got it! Thanks so much for your help everybody
12,951
Posted By FreddyG
I think we have it! IFS=":" && \ while...
I think we have it!


IFS=":" && \
while read name fein
do
echo "$name:"$(echo -n $fein | sha1sum)
done < raw_data.txt > hashed_data.txt
12,951
Posted By FreddyG
ok, I have IFS=":" && \ while read name...
ok, I have


IFS=":" && \
while read name fein
do
fein=`echo -n $fein`
echo "$name:"$(sha1sum <<< $fein)
done < raw_data.txt > hashed_data.txt


same result


first...
12,951
Posted By FreddyG
seems to just remove the new line feed between...
seems to just remove the new line feed between the lines, IE ouput is now


first company name:179c94cf45c6e383baf52621687305204cef16f9 -second company...
12,951
Posted By FreddyG
i think the command I'm actually going for is...
i think the command I'm actually going for is sha1sum. When i modified the first snipit you posted to this it seemed to work


IFS=":" && \
while read name fein
do echo "$name:"$(sha1sum...
12,951
Posted By FreddyG
thanks! checking it out now
thanks! checking it out now
12,951
Posted By FreddyG
parse csv file, sha1 hash and output
I have a file, not really a csv, but containing delineated data just the same. Lets call that file "raw_data.txt". It contains data in the format of company name:fein number like this:


first...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 02:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy