Re: RFS: FSlint - File System lint
On Mon, Feb 27, 2006 at 04:47:31PM -0500, pryzbyj wrote:
> On Mon, Feb 27, 2006 at 05:04:30PM +0000, P??draig Brady wrote:
> > Hi,
> >
> > I've been maintaining FSlint for a few years now
> > and it has proved quite popular. There have even
> > been (buggy) thirdparty debian packages floating around.
> > In the latest version (2.14) I have created a debian package,
> > and it would be create if someone could sponsor this
> > package for inclusion in debian.
This package is really quite neat. I've read through much of the
code, (lots of pretty-small bashscripts), and I must say that I'm
inspired. I especially like this "find duplicates" pipeline (my own
implementation here):
find . -type f -print0 |xargs -r0 md5sum |sort |sed -re 's/(\S*)\s*(\S*)/\2\t\1/' |uniq -df1 --all-=sep |sed -e 's/\t\S*$//;'
Does anyone know a prettier way of switching the md5sum output than
this sedscript?? (Has to deal with special pathnames, of course!)
Or a way of optimizing the files removed? (Probably to maximize the
level of directories which have no normal files anywhere within them
after removal).
Justin
Reply to: