Daniel Shahaf wrote on Sat, 22 Sep 2018 15:28 +0000: > Adam Jensen wrote on Sat, 22 Sep 2018 11:12 -0400: > > On 09/22/2018 10:13 AM, Daniel Shahaf wrote: > > > One reason for not creating the file in the form > > > "${hash}${two_spaces}${filename}" > > > is that not everyone uses sha512sum from GNU coreutils. If there were > > > additional information in the file besides the hash value, people not on > > > linux would have had to sed it out. > > > > apr and apr-util each do it differently. Consequently, the > > idiosyncrasies of each will need to explored and handled separately.
This will work unmodified for quite a few forms of .sha512 files. grep -w "$(sha512sum subversion-1.10.2.tar.bz2 | sed -e 's/ .*//')" subversion-1.10.2.tar.bz2.sha512