Hi ,
Like a Cat or Grep funcions into linux exist a command similar ??
Want do this but with php :
"cat carlos.conf | grep IP | cut -d = -f 2 | cut -d \ -f 10"
then retrieve just the IP address.
How can i do this over PHP and store into a variable ?
then i will make this :
"perl -i -se 's/$oldIP/$newIP/g' carlos.conf"
The oldIP variable it's the IP that the command cat carlos.conf (bottom) take .
How then a do this into a PHP script ???
Thanks .