You could use a combination of pipes to produce the list you want.
ls | sed -e 's/.src.rpm//'
Or, use ".i686.rpm" instead of the ".src.rpm" -- what ever you want to strip off.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 4:41 PM
To: [EMAIL PROTECTED]
Subject: How to trim chars off words with sed, awk or something.
Hey,
I have 2 dirs, one with all the src.rpms of the RH updates, another with the i686 rpms.
I compiled them all with a for..do loop, but some of them didn't compile. I'd like to make a list of each dir and diff them, but in order to so, I'd have to trim .src.rpm and .i686.rpm off each filename. I was hoping I could do that with grep but it doens't look like.
So does anyone have an idea how I could parse these text files and trim off the .*.rpm ?
----------------------------------------------------
Jonathan Wilson
System Administrator
Cedar Creek Software
http://www.cedarcreeksoftware.com
Central Texas IT
http://www.centraltexasit.com
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list