[plug] re: awk

Craig Ringer craig at postnewspapers.com.au
Sun Jul 20 23:26:05 WST 2003


> All I needed was a way to strip off the .i386.rpm because I do a monthly
> download of packages and I needed a way to compare what I already have
> to what I downloaded.  Anything that is different is downloaded.
> But I needed a way to generate the listing first.

!!

So you weren't talking about installed RPMs in the RPM db at all, but 
rather a directory full of files.... OK.

"man cut"

This will do what you want.

Consider using a proper mirroring program or rsync (or unison, so you 
don't need to say it James :-P ) instead - much easier.

Craig Ringer



More information about the plug mailing list