On Sun, Jul 20, 2003 at 11:26:05PM +0800, Craig Ringer wrote: | | 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. | Surely you mean sed? ls -1 | sed 's/.i386.rpm$//g' should do the trick. CP.