fork(1) download
  1. sha256sum() {
  2. printf '%s\n' 'a948904f2f0f479b8f8197694b30184b0d2ed1c1cd2a1ec0fb85d299a192a447 abc.txt'
  3. }
  4.  
  5. sha256sum abc.txt |
  6. awk '{print $1}' |
  7. if [ "$(cat)" = "a948904f2f0f479b8f8197694b30184b0d2ed1c1cd2a1ec0fb85d299a192a447" ]; then
  8. echo "match"
  9. fi
Success #stdin #stdout 0s 4512KB
stdin
Standard input is empty
stdout
match