Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #242503

Re: MD5 listing format

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: MD5 listing format
Date 2021-11-29 06:00 +0100
Message-ID <DoGVH-4KJ-1@gated-at.bofh.it> (permalink)
References <DozKx-xW-3@gated-at.bofh.it> <DoB9D-1gO-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun 28 Nov 2021 at 23:40:43 (+0100), Thomas Schmitt wrote:
> David Wright wrote:
> > My solution will be to rename or delete the file,
> > after adding code to detect any future occurrences.
> 
> Or you could avoid to show md5sum a file name.
> 
>   path=...as.weird.as.is...
>   md5sum <"$path"
> 
> will yield something like
> 
>   b8ce6ed30aa67e94ad9276c9ac2bbc50  -
> 
> If you need a file name in the result line, then you can change the "-"
> to the file name in a form which you like.

I came across this when I googled the filename:
https://askubuntu.com/questions/144408/what-is-the-file-c-nppdf32log-debuglog-txt
and I would imagine that it's likely related to the origin of my file.
It's the first file in a decade to cause that escaping mechanism,
and only got captured because I dumped the entire /home of a machine
I decommissioned a while back.

Your workaround is probably useful for really pathological filenames,
but doesn't scale well for my use case. (There are 356866 lines in
the MD5SUMS file concerned.) Thanks.

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

MD5 listing format David Wright <deblis@lionunicorn.co.uk> - 2021-11-28 20:00 +0100
  Re: MD5 listing format Greg Wooledge <greg@wooledge.org> - 2021-11-28 20:20 +0100
  Re: MD5 listing format "Thomas Schmitt" <scdbackup@gmx.net> - 2021-11-28 20:30 +0100
    Re: MD5 listing format David Wright <deblis@lionunicorn.co.uk> - 2021-11-28 22:20 +0100
      Re: MD5 listing format "Thomas Schmitt" <scdbackup@gmx.net> - 2021-11-28 23:50 +0100
        Re: MD5 listing format David Wright <deblis@lionunicorn.co.uk> - 2021-11-29 06:00 +0100

csiph-web