$file=extrac(app).jpg $org=app $rep=fedora $cmd = "sed -i s/$org/$rep/g $file"; system($cmd);