In article <1208301459.8661.6.camel@[EMAIL PROTECTED]
>,
v_dragon@[EMAIL PROTECTED]
says...
> On Tue, 2008-04-15 at 16:33 -0400, Draco18s wrote:
> > Is there a way for a php script (running on Linux) to call a sed
command or
> > bash script containing the sed command?
> >
> > The other thing I need to know is how to put a variable into the sed
call?
> >
> > I.E. the call I want to make would be something like this:
> > sed -e 's/UserName12ch/$username/g' $file > $file2 mv -f $file2 $file
> >
> > where $file and $username are pre-defined in the php script (the $file
file-
> > path has another variable, dependant on the user number, but that's
irrelevant
> > here).
> >
> <_< you should ask this to my Mate..he might know...
*Prods the fuzzy dragon*
So, asks him!
--
Lord Draco18s
DC2.Dw Gm L- W- T Phvwalt Sks Cag^ Bco|# A- Fr++ Nu M--- O H+ $ Fo R+++
Ac+ J+
S+ I-# V++ Q++ Tc+++[C++]/Tc--- E+
"Yum!" |> v-v-v-v |>
| , , .|. | n | .|.
'. |_/| | |'''''''''''| | \
(q p),-| | HERSHEY'S | |'-._ ))
/_(/ | | CHO|"|LIT | | ) '-.___//
---W"W----'-'----'-'----'-'----------'--------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bearer of the Bronze Medal for Most Posts in March 2007 (283)
Bearer of the Gold Medal for Most Posts in April 2007 (826)
Holder of the Scroll of Nobility from Lady Viriatha for that win


|