Rajesh Dorairajan wrote:

"cat copyright | more"

Useless use of cat award.


Wonder why didnt the author use more copyright or less copyright?



I am trying to edit the script and modify it as:


"cat copyright"

I am trying the following command from perl:

system("perl -p -i.bak -e \"s/cat copyright | more/cat copyright/\"
install.sh");

??? using a shell system() to fix a shell script. =) (Having Perl execute Perl isnt so strange in-of-itself.)

Why not read and write the script directly and stop all the system() cmds?

open the script
change the script
save the script

After all the script is just data to Perl.

-Bill-
__Sx__________________________________________
http://youve-reached-the.endoftheinternet.org/

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to