For the following execution and result of sha256sum
~/HydroGuardFW/hw_1_5/Debug$ sha256sum debug_2.0.5.hex
34c977f0df3e90f9a4b36da3cd39fdccf3cd1123c563894b3a3378770a19fc6d debug_2.0.5.hex
The output will be in two parts, the sha256 and the echo of the file name of which the sha256 sum was calculated. How do you grab the first part part of the output, which is the sha256 into a variable so it can be placed into a file using bash script.