I need to delete some lines from my dhcpd.conf file by a simple php script. So I'm trying to use sed command to do that. On terminal I've tryed to use this command to delete from line 1 to 3 and it works:
sed -i '1,3d' pippo.txt
The problem is that i can't understand how to use sed passing some php variable for line numers. I need something like:
sed -i '$var1,$var2d' pippo.txt
can someone help me with the correct sintax for that command on php pls. Thanks.