[Leaplist] list files not from rpm
Ingo Claro
miclaro at netred.cl
Mon Feb 9 07:25:06 EST 2009
-------- Original Message --------
Subject: Re: [Leaplist] list files not from rpm
From: Ingo Claro <miclaro at netred.cl>
To: This is the Leap Main List <leaplist at leap-cf.org>
Date: 02/09/2009 09:21 AM
>
> modified the script a little:
>
> #!/bin/bash
> updatedb && locate "" | sort > allFiles
> rpm -qal | \
> grep -v "^/proc" | \
> grep -v "^/sys" | \
> grep -v "\(contains no files\)" | \
> sort | uniq \
> > filesFromRpms
> comm -3 allFiles filesFromRpms > filesNotFromRpms
> wc -l filesFromRpms filesNotFromRpms
> wc -l allFiles
>
> the strange thing is that lines with proc and sys DO get into
> filesFromRpms, I've tried also with grep -v "/proc" with no success also.
> If I make the grep so the filesFromRpms file It works, but shouldn't
> it work directrly with pipe?
>
> regards,
> Ingo
>
never mind, I got the error, should be the greps in allFiles, not
filesFromRpms :S
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Leaplist
mailing list