scripting/regex help
Jeremy C. Reed
reed at reedmedia.net
Mon Jun 12 11:18:04 MST 2006
On Mon, 12 Jun 2006, Eric "Shubes" wrote:
> I have a variable x=qmail-toaster-1.2.9-1.3.1.src.rpm
>
> I want a variable y=qmail-toaster
>
> I'm thinking that to get from x to y, I need to strip -*-*.src.rpm off the
> end. How do I do that? (or is there a better way?)
sed -e 's,-[^-]*-[^-]*.src.rpm$,,'
Jeremy C. Reed
echo '9,J8HD,fDGG8B@?:536FC5=8 at I;C5?@H5B0D at 5GBIELD54DL>@8L?:5GDEJ8LDG1' |\
sed ss,s50EBsg | tr 0-M 'p.wBt SgiIlxmLhan:o,erDsduv/cyP'
More information about the PLUG-discuss
mailing list