if you run:while read CTFid; do echo -n $CTFid | openssl dgst -sha1 -hmac key; done < CTFid.csv > OPKlist.csvi am getting (stdin) in the prefix like so(stdin)=2d442d454a00c469baa7ec5deba94f172263c247I am trying to use| sed 's but confused as to where the placement goesAny suggestions or help?
openssl dgst -sha1 -hmac key producing an extraneous (stdin)=  prefix and trailing newline
openssl;stdin
This happens to me on OpenSSL for IBM AIX, which also outputs this same leading (stdin)=. Seeing as you're using a shell one-liner, you can isolate the resulting hash by simply deleting the prefix with sed:echo -n $CTFid | openssl dgst -sha1 -hmac key | sed s/(stdin)=//;