On Wed, Jul 6, 2016 at 8:44 AM, Christian Borntraeger <
[email protected]> wrote:
> <snip>
>
> >
> > for i in *;do x=$(sha512sum "$i" | cut -d ' ' -f 1);echo "$i"
> >>> "${x}.sha512sum";done
> >
> > I then did:
> >
> > wc -l *.sha512sum | head -n -1 | awk '$1 != 1 {print $2;}'|while read
> i;do
> > echo '===';cat $i;done
> >
> > which gave me a nice list of files with each group separated by ===.
> >
> > Is this reasonable? Is there a better way to do this?
>
> Have you checked the "fdupes" tool?
>
Never heard of it. Thanks! I'm pulling it from the repository right now. I
prefer regular tools to some "clever" thing I think up myself.
--
"Pessimism is a admirable quality in an engineer. Pessimistic people check
their work three times, because they're sure that something won't be right.
Optimistic people check once, trust in Solis-de to keep the ship safe, then
blow everyone up."
"I think you're mistaking the word optimistic for inept."
"They've got a similar ring to my ear."
>From "Star Nomad" by Lindsay Buroker:
Maranatha! <><
John McKown
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/