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

Re: shell script and rpm



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>




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