[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: shell script and rpm



that worked beautifully, thanks a lot.

Phil


From: Paul Heinlein <heinlein@cse.ogi.edu>
Reply-To: rpm-list@redhat.com
To: rpm-list@redhat.com
Subject: Re: shell script and rpm
Date: Tue, 2 Sep 2003 13:31:31 -0700 (PDT)

On Tue, 2 Sep 2003, Phil Conan wrote:

> sed -e 's/usr\/local\/dsi\-0\.3/'$RPM_INSTALL_PREFIX'/g' /tmp/dsi_setup.sh
> >/home/telorb/dsi_setup.sh


Do you mean something like this?

  sed -e "s!/usr/local/dsi-0\.3!${RPM_INSTALL_PREFIX}!g" \
  < /tmp/dsi_setup.sh \
  > /home/telorb/dsi_setup.sh

--Paul Heinlein <heinlein@cse.ogi.edu>


_______________________________________________ Rpm-list mailing list Rpm-list@redhat.com https://www.redhat.com/mailman/listinfo/rpm-list

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []